Re: [Phpslash-devel] Configuration of date/time formatting
Brought to you by:
joestewart,
nhruby
From: Matthew L. <lei...@ma...> - 2002-08-26 12:28:24
|
Hi Joe, This is a big brain burp on my part...the TZ block of config.php3 is not used for anything! I later replaced it with the [timezone] block below it and forgot to delete. Here are the settings I have in config.php3 right now. $_PSL['timezone']['engine'] = true; $_PSL['timezone']['native'] = true; $_PSL['timezone']['dir'] = '/usr/share/zoneinfo'; $_PSL['timezone']['default'] = ':/etc/localtime'; $_PSL['timezone']['name'] = 'Europe/Oslo'; Before the stuff is ready to merge in, I think there are some design issues. Right now, there isn't much difference between i18n and customization of date formats. The formats are in $_PSL['classdir']/locale/<languagecode>.LC_TIME.php. You set the locales in config.php3, and you get that locale's date formats. If you want to change them, you have to create your own custom.LC_TIME.php and set $_PSL['locale']['LC_TIME'] = 'custom'. Does that seem convoluted to you? Also, the way it's implemented, you get funny results if a requested date format is not specified in your language file. That should probably be fixed to fall back to en_US or something. Anyway, hope that you can get it up and running and let me know. --MPL On Fri, 23 Aug 2002, Joe Stewart wrote: > Matthew, > > I finally am starting to understand the timezone patch some. Very good > stuff. > > I'm missing something simple though. I can set the displayed zone via > tz_select.php fine. Can you explain how these work to override the > server's time zone?: > > //;; Set this variable if you want to override your server's time zone. > $_PSL['TZ'] = 'America/Chicago'; > > // to disable setting in URL and to set $_PSL['timezone']['name'] as the > time zone > set_TZ(); > > I can't seem to get it to work. > > Maybe we can get this merged in soon. > > Joe > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Phpslash-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpslash-devel > -- ---------------------------------------------------------------- Matthew Leingang http://www.math.rutgers.edu/ Rutgers University lei...@ma... Department of Mathematics "This signature needs no quote." |