Re: NSCalendar date calculation anomaly
Re: NSCalendar date calculation anomaly
- Subject: Re: NSCalendar date calculation anomaly
- From: Scott Ribe <email@hidden>
- Date: Wed, 28 Apr 2010 08:56:32 -0600
OK, I get it. It's keeping the time of day the same in my local time zone, not UTC. To get the result I want, I need to:
create the reference date
subtract it's utc offset
add days
Instead of:
create the reference date
add days
subtract the utc offset of the result.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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