Re: Setting the Format for Dates
Re: Setting the Format for Dates
On Tue, Nov 19, 2002 at 11:40:29PM +0100, Andreas Mayer wrote:
>
I'm trying to localize time/date strings. This is what the
>
documentation says, specifiers should do:
>
>
%c shorthand for "%X %x", the locale format for date and time
>
%x date using the date representation for the locale, including the
>
time zone (produces different results from strftime())
>
%X time using the time representation for the locale (produces
>
different results from strftime())
>
>
Now %x, as well as %X give me:
>
>
Di Nov 19 2002 23:29:00 Europe/Berlin
>
>
While the language and the time format is correct, the date format is
>
not. Besides, none of them should display date AND time, if I'm not
>
mistaken.
>
>
%c does the same. Same wrong format, too.
>
>
Oh. The English 'localization' works as expected. <sigh>
Yup, this stuff is horribly broken. There's a quick summary of most
of the bugs I've found at the top of this file:
<
http://svn.sabi.net/repos/dev/trunk/Cocoa/Pester/Source/PSAlarmSetController.m>
and workarounds for -most- of the bugs (the only exception is date
formats getting corrupted, I don't really know how to deal with that
one since it affects Apple stuff such as the menubar clock too) here:
<
http://svn.sabi.net/repos/dev/trunk/Cocoa/Pester/Source/NJRDateFormatter.m>
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.