time selector defaulting to time zone

2 views
Skip to first unread message

Eddie Peloke

unread,
Sep 27, 2010, 4:10:45 PM9/27/10
to cocoahead...@googlegroups.com
Our apps include a time selector and it has always worked fine but on recent builds, we noticed an issue.  Now, the time selector seems to default to the time zone of the computer that did the build.  For example, when a user in Chicago opens the selector at 3:00, the selector shows 4:00 and if they set it to 5:00 then it correctly adjusts for time zone and sets it back to 4:00...problem is, why does it default to Eastern?

I just changed my computer to central, did a build and when I look at it on my phone at 3:00 (eastern) and open the selector it defaults to 2:00.

Anyone else seen this?

Thanks,
Eddie

Jamie Pinkham

unread,
Sep 27, 2010, 6:58:38 PM9/27/10
to cocoahead...@googlegroups.com
are you setting the timezone? 

according to the docs:

timeZone

The time zone reflected in the date displayed by the date picker.

@property(nonatomic, retain) NSTimeZone *timeZone
Discussion
The default value is nil. which tells the date picker to use the current time zone as returned by localTimeZone (NSTimeZone) or the time zone used by the date picker’s calendar.

remember, NSDate does contain timezone information.

--
You received this message because you are subscribed to the Google Groups "CocoaHeads Richmond" group.
To post to this group, send email to cocoahead...@googlegroups.com.
To unsubscribe from this group, send email to cocoaheads-rich...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cocoaheads-richmond?hl=en.

Eddie Peloke

unread,
Sep 27, 2010, 7:10:44 PM9/27/10
to cocoahead...@googlegroups.com
Jamie,

I think we found the fix here as it looks like others had the same issue:

http://www.iphonedevsdk.com/forum/iphone-sdk-development/52533-uidatepicker-bug-ios-4-a.html

Thanks,
Eddie
Reply all
Reply to author
Forward
0 new messages