Re: NSDatePicker weirdness with time.
Re: NSDatePicker weirdness with time.
- Subject: Re: NSDatePicker weirdness with time.
- From: Trygve Inda <email@hidden>
- Date: Tue, 05 Jul 2011 22:16:52 -0700
- Thread-topic: NSDatePicker weirdness with time.
> 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
>
It seems that NSDateFormatters instantiated in my nibs get their zone set to
PDT (because of my time settings), despite having called
[NSTimeZone setDefaultTimeZone:[NSTimeZone
timeZoneWithAbbreviation:@"GMT"]];
Before any nibs are loaded.
Formatters created in code with:
[[[NSDateFormatter alloc] init] autorelease];
Have the zone set to GMT as specified in setDefaultTimeZone
Seems like an OS bug to me.
T.
_______________________________________________
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