• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDate description in Lion shows GMT instead of local time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDate description in Lion shows GMT instead of local time
      • From: Clark Cox <email@hidden>
    • Re: NSDate description in Lion shows GMT instead of local time
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Persistant reference to file that is not a path?
  • Next by Date: Calling -addObserver:forKeyPath:… more than once
  • Previous by thread: Re: Persistant reference to file that is not a path?
  • Next by thread: Re: NSDate description in Lion shows GMT instead of local time
  • Index(es):
    • Date
    • Thread