Re: Need localization-proof method of transporting dates.
Re: Need localization-proof method of transporting dates.
- Subject: Re: Need localization-proof method of transporting dates.
- From: Uli Kusterer <email@hidden>
- Date: Sun, 5 Apr 2009 11:51:08 +0200
On 05.04.2009, at 11:24, Graham Cox wrote:
However it does seem as if writing out the date as seconds since
1970 (or a string, as Tommy suggested) might be safer and cut out
any potential gotchas that I haven't realised existed.
Keep us posted whether that fixes it.
Have you got a copy of the user's Preferences file? There might be
some clue in there, e.g. use of different date separators or so. My
guess would be that an invalid date will probably end up as [NSDate
distantPast], or NIL and thus return NO if it's the first item in your
test, or throw if it's the second.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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