From: Reini U. <ru...@x-...> - 2002-02-26 20:52:49
|
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/ |