I tried that. It looks awful on my Windows server. Dates appear as
"02/27/2002" (even though my Windows locale settings specify the UK
convention of 27/2/2002, and I prefer February 27, 2002 in any event), and
times appear as 08:23:45 (and I would prefer them with the seconds part).
You can, of course, specify the settings in the theme itself, by overriding
the setDateFormat and setTimeFormat funcitons.
Lawrence
At 20:52 26/02/2002, you wrote:
>Lawrence Akka schrieb:
> > Workaround absence of %e date format specifier in Windows strftime
> function.
> > See code for comments
> > + // As a result, we have to use %d, and strip out leading zeros
> ourselves.
> > +
> > + var $_dateFormat = "%B %d, %Y";
> > var $_timeFormat = "%I:%M %p";
>
>I would really prefer %x and %X because these are the recommended local
>settings.
>so one doesn't have to fix this for his locale.
>
>themes/*/themeinfo.php:
>$Theme->setDateFormat("%x");
>$Theme->setTimeFormat("%X");
>
>lib/Themes.lib:
> //var $_dateFormat = "%B %d, %Y";
> //var $_timeFormat = "%I:%M %p";
> $_dateFormat = "%x";
> $_timeFormat = "%X";
>
>docs:
>%x - preferred date representation for the current locale without the time
>%X - preferred time representation for the current locale without the date
>
>these do work in windows.
>--
>Reini Urban
>http://xarch.tu-graz.ac.at/home/rurban/
>
>_______________________________________________
>Phpwiki-talk mailing list
>Php...@li...
>https://lists.sourceforge.net/lists/listinfo/phpwiki-talk
|