• 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
NSTimeZone questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTimeZone questions


  • Subject: NSTimeZone questions
  • From: Alex Kac <email@hidden>
  • Date: Wed, 14 Oct 2009 12:28:56 -0500

Some hopefully basic questions. We normally call [NSTimeZone localTimeZone] in our app to get the current timezone. In some cases we may set the default timezone via [NSTimeZone setDefaultTimeZone:...]. Now after we've done that we want to reset it so that it again simply gets the system's timezone. My assumption is to
[NSTimeZone setDefaultTimeZone:[NSTimeZone systemTimeZone]];


Does that sound right? Or should I pass nil and it'll know what to do? I've read the docs a few times and I can't seem to determine the correct answer to this one. I have also googled it, but NSTimeZone doesn't seem to be talked about much.



Alex Kac - President and Founder
Web Information Solutions, Inc.

"Patience is the companion of wisdom."
--Anonymous




_______________________________________________

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


  • Prev by Date: Re: iPhone/iPod Device Detection Necessary for App Approval?
  • Next by Date: Re: Default Core Data errors
  • Previous by thread: Re: Core Data not fulfill a fault (now: observer) after Save As
  • Next by thread: CALayer z-axis scale
  • Index(es):
    • Date
    • Thread