bugGNUstep - Bugs: bug #38017, Date formatting inconsistent with...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #38017: Date formatting inconsistent with Cocoa when calling -description on a NSDictionary containing NSCalendarDate objects

Submitted by:  Niels Grewe <thebeing>
Submitted on:  Wed 02 Jan 2013 03:50:24 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 21 Jan 2013 10:17:57 AM UTC, comment #1:

I had assumed that this was because we were using GNUstep property lists (extended to handle numbrs and dates like XML property lists) rather than OpenStep style property lists. But it turns out this was a bug in the OpenStep style property list support. I fixed the code to use -description to convert a date to a string in an OpenStep property list.

Richard Frith-Macdonald <CaS>
Project Member
Wed 02 Jan 2013 03:50:24 PM UTC, original submission:

On Mac OS X, when you call -description on a dictionary that contains NSCalendarDate objects, it respects the calendar format set for the object. When you do the same with gnustep-base, you get a standard timestamp instead.
The reason is that we have proper support for NSDate in ASCII property lists :-) So I'm not quite sure whether we want to modify our behaviour to match the OS X implementation, since it would mean that we'd have to have a special case in GSPropertyListMake() just for this. (Also, when writing XML plists, Cocoa will disregard the calendar format set for the object as well).

Niels Grewe <thebeing>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by thebeing (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Jan 2013 10:17:57 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup