NSDate description in Lion shows GMT instead of local time
NSDate description in Lion shows GMT instead of local time
- Subject: NSDate description in Lion shows GMT instead of local time
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 26 Aug 2011 14:38:02 +0700
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 (email@hidden)
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:
This email sent to email@hidden