From: Reini U. <ru...@x-...> - 2004-01-30 23:05:56
|
Oliver Betz schrieb: > wouldn't it be nice to have the settings for date and time formats in > the configuration file? > > At the moment some themes (MacOSX, Portland, SpaceWiki) set the > format via $Theme->setDateFormat, some not. > > I wouldn't like to change the themes to get the right (ISO8601, SCNR) > date. We had this before and didn't like it. Just change your theme or create a new one, based on the existing one. I also would like to have "%x %X" as strftime format template, which is based on the servers locale. See Theme.php: Note: Windows' implemetation of strftime does not include certain format specifiers, such as %e (for date without leading zeros). In general, see: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_.wcsftime.asp As a result, we have to use %d, and strip out leading zeros ourselves. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |