Re: NSDate / NSXMLParser
Re: NSDate / NSXMLParser
- Subject: Re: NSDate / NSXMLParser
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 3 Nov 2009 13:19:35 -0700
On Nov 3, 2009, at 1:15 PM, David Rowland wrote:
It still gets the hours right but tags the time zone as -0800
(Pacific).
If you're basing that off of the description of the NSDate, then of
course it does; NSDate objects have no knowledge of time zones, so the
description shows the date & time as if they were in your time zone.
If you need to encapsulate a time zone in a date, then use
NSCalendarDate instead. NSCalendarDate is deprecated, but as of now,
it's the only built-in date class that uses time zones.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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