Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-15-2010, 12:35 PM   #8 (permalink)
2ndSegment
Registered Member
 
Join Date: Feb 2009
Posts: 5
2ndSegment is on a distinguished road
Default

Dobry,

Thanks for starting this thread. I've been challenged by this as well. Since my app is frequently used for tracking time across time zones, this is a big problem for me. In viewWillAppear:

Code:
datePicker.timeZone = [NSTimeZone localTimeZone];
Setting localTime Zone improved the situation, but the problem cropped up again. I played around with a number of things and I get the most consistent results with:

Code:
datePicker.timeZone = [NSTimeZone defaultTimeZone];
Although Today (as displayed in blue on the picker) is not always correct, the correct date is displayed when the time zone changes. Quitting the app and starting up again (iOS 4) always restores the correct behavior to the datePicker. So this problem is only a problem for me because the app is "freeze dried", the time zone changes, the app is brought to the foreground and the datePicker doesn't update for the new localTimeZone.

John
2ndSegment is offline   Reply With Quote
 

» Advertisements
» Online Users: 360
8 members and 352 guests
cgokey, evilmatt10, ipodphone, myrnanu59, NSString, Objective Zero, Pudding, williamWang
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,564
Threads: 94,079
Posts: 402,747
Top Poster: BrianSlick (7,990)
Welcome to our newest member, myrnanu59
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.