• 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
NSDatePicker weirdness with time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDatePicker weirdness with time.
      • From: Raleigh Ledet <email@hidden>
  • Prev by Date: Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?
  • Next by Date: Re: Setting the Sent Actions in IB
  • Previous by thread: [Moderator] Re: Lion's Auto Save & Versions
  • Next by thread: Re: NSDatePicker weirdness with time.
  • Index(es):
    • Date
    • Thread