Re: NSDatePicker weirdness with time.
Re: NSDatePicker weirdness with time.
- Subject: Re: NSDatePicker weirdness with time.
- From: Raleigh Ledet <email@hidden>
- Date: Tue, 5 Jul 2011 17:33:45 -0700
Trygve,
That should work. I suspect that you are setting the timeZone of the NSDatePicker as well. There is a bug, where is you set the NSDatePicker timeZone but do not set the calendar, then you will run into this problem. (Same thing with NSDatePicker locale.)
So, either don't adjust the NSDatePicker defaults, or set a calendar for the NSDatePicker.
-raleigh
On Jul 5, 2011, at 4:09 PM, Trygve Inda wrote:
> 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
_______________________________________________
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