• 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: NSDate/NSCalendarDate/NSTimezone..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate/NSCalendarDate/NSTimezone..


  • Subject: Re: NSDate/NSCalendarDate/NSTimezone..
  • From: arri <email@hidden>
  • Date: Tue, 20 Mar 2007 03:59:28 +0100

since there was no respons so far,
i guess everyone just knew i was making a stupid mistake.

the original dates i was dealing with didn't actually have a zone set,
so probably therefore treated as GMT dates.  (?)

thanks for ignoring this one.. :)


On Mar 20, 2007, at 01:15 56, arri wrote:

i'm a bit lost over what seemed so simple:

i created a NAValueTransformer simplified Date display,
but no matter what i try, it will always add the timezone offset,
so that the actual display shows GMT time, instead of local..


- (id)transformedValue:(id)value { if(value==nil) return nil;

NSString *dateD = [value descriptionWithCalendarFormat:@"%d %b '%y %H:%M:%S" timeZone:nil locale:nil];
return dateD;
}



this must be super-basic, but i don't see it anymore.. any help is much appreciated..

gr
arri

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >10.4.9 stangeness? (From: Scott Andrew <email@hidden>)
 >NSDate/NSCalendarDate/NSTimezone.. (From: arri <email@hidden>)

  • Prev by Date: Re: NSDatePicker behaviour is odd when typing date
  • Next by Date: Getting the last date of the month?
  • Previous by thread: NSDate/NSCalendarDate/NSTimezone..
  • Next by thread: Image manipulation on 10.3
  • Index(es):
    • Date
    • Thread