• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDatePicker weirdness with time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDatePicker weirdness with time.
      • From: Fritz Anderson <email@hidden>
References: 
 >Re: NSDatePicker weirdness with time. (From: Raleigh Ledet <email@hidden>)

  • Prev by Date: Re: QTMovie not playing in new window
  • Next by Date: Re: NSComboBox in NSTableView behaving strangely
  • Previous by thread: Re: NSDatePicker weirdness with time.
  • Next by thread: Re: NSDatePicker weirdness with time.
  • Index(es):
    • Date
    • Thread