NSTimeZone questions
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