Re: NSDateFormatter Breaks on non-English OS
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