NSDatePicker weirdness with time.
NSDatePicker weirdness with time.
- Subject: NSDatePicker weirdness with time.
- From: Trygve Inda <email@hidden>
- Date: Tue, 05 Jul 2011 16:09:16 -0700
- Thread-topic: NSDatePicker weirdness with time.
In my app I have:
[NSTimeZone setDefaultTimeZone:[NSTimeZone
timeZoneWithAbbreviation:@"GMT"]]; // So that when we decode NSDate
objects, we get the h/m/s as GMT
I also have an NSDatePicker set to only show the hh:mm
My system clock is set to US West Coast Time and US format.
When I highlight the HH field and type a "5", a "9" shows up in the hour
field.
When I type a "1", the 1 shows up for about 1 second, then changes to a 5.
When I type a "2", I get a "6".
It seems to be adding 4 hours to what I type.
What is going on here?
Trygve
_______________________________________________
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