The documentation says about -[NSDate description]: "The representation is not 
guaranteed to remain constant across different releases of the operating 
system."


NSLog(@"someDate: %@", someDate );
Formerly did print the time in the local time zone. Which is a very sensible 
thing to do.

But Lion prints UTC (aka GMT), which I find rather confusing.

So I have to change all my time prints to: 
NSLog(@"someDate: %@", [ someDate descriptionWithCalendarFormat: nil timeZone: 
nil locale: nil ] );

Is this a bug in Lion or is this a really useful feature?


Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to