Re: NSDatePicker weirdness with time.

2011-07-07 Thread Sean McBride
On Wed, 6 Jul 2011 18:46:54 -0700, Trygve Inda said: I have worked around it of course, but there is no logical reason for the date/time controls to not configure themselves based on the locale. Usually, but not always. In some cases, one might want a date picker to always use ISO 8601,

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Fritz Anderson
On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: 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.

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Kyle Sluder
On Wed, Jul 6, 2011 at 7:11 AM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: It seems that NSDateFormatters instantiated in my nibs get their zone set to PDT (because of my time settings), despite having called [NSTimeZone

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Raleigh Ledet
This conversation started about NSDatePicker. Now you are referring to NSDateFormatter. Which one are you dealing with? My test shows that a nib instantiated NSDatePicker has a nil timeZone value. -raleigh On Jul 6, 2011, at 8:05 AM, Kyle Sluder wrote: On Wed, Jul 6, 2011 at 7:11 AM, Fritz

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Trygve Inda
On Wed, Jul 6, 2011 at 7:11 AM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: It seems that NSDateFormatters instantiated in my nibs get their zone set to PDT (because of my time settings), despite having called [NSTimeZone

NSDatePicker weirdness with time.

2011-07-05 Thread Trygve Inda
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

Re: NSDatePicker weirdness with time.

2011-07-05 Thread Raleigh Ledet
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

Re: NSDatePicker weirdness with time.

2011-07-05 Thread Trygve Inda
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