• 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: NSDateFormatter Breaks on non-English OS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter Breaks on non-English OS


  • Subject: Re: NSDateFormatter Breaks on non-English OS
  • From: Trygve Inda <email@hidden>
  • Date: Wed, 01 Jul 2009 01:20:52 +0000
  • Thread-topic: NSDateFormatter Breaks on non-English OS

>
> On Jun 30, 2009, at 5:08 PM, Trygve Inda wrote:
>
>> [theFormat setDateFormat:@"EEE MMM dd HH:mm:ss zzz yyyy"];
>
>>
> I'm not sure if "UTC" is recognised; try:
>
> [myFormatter setDateFormat:@"EEE MMM dd HH:mm:ss 'UTC' yyyy"];
>
> mmalc
>
>

Indeed that does it. So will the date created be assumed to be UTC/GMT then?

My App calls

    [NSTimeZone setDefaultTimeZone:[NSTimeZone
timeZoneWithAbbreviation:@"GMT"]];        // So that when we decode NSDate
objects, we get the h/m/s as GMT



_______________________________________________

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

References: 
 >Re: NSDateFormatter Breaks on non-English OS (From: mmalc Crawford <email@hidden>)

  • Prev by Date: [iPhone] newbie Q: switching between two views
  • Next by Date: Re: Dynamic Services menu, CM plug-in alternatives
  • Previous by thread: Re: NSDateFormatter Breaks on non-English OS
  • Next by thread: Re: NSDateFormatter Breaks on non-English OS
  • Index(es):
    • Date
    • Thread