Re: NSCalendar date calculation anomaly
Re: NSCalendar date calculation anomaly
- Subject: Re: NSCalendar date calculation anomaly
- From: Greg Guerin <email@hidden>
- Date: Wed, 28 Apr 2010 13:12:13 -0700
A couple suggestions:
If you always calculate using noon on any given date, rather than
midnight, then DST transitions won't affect the year/month/day
components.
If you don't want to use noon, then NSTimeZone
daylightSavingTimeOffsetForDate: should be taken into account.
-- GG
_______________________________________________
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