Re: note 8548 added to date (2)

From: Date: Mon, 18 Sep 2000 11:50:39 +0000
Subject: Re: note 8548 added to date (2)
Groups: php.notes 
Request: Send a blank email to php-notes+get-5150@lists.php.net to get a copy of this message
BTW, the code: <? putenv("TZ=EST"); echo date("Y/m/d H:i:s T"); ?> Printed: 2000/09/18 06:53:34 EST (It was 04:53:34 PDT in my machine) All of this on PHP 4.0.2, under RH Linux 6.1 --- maffew@cat.org.au wrote: > changing timezones: the method given in the comment > above: > > putenv("TZ=Europe/Rome"); > > stopped working when i switched to php4. it would be > really handy to have some fast method inside php4 to > utilise the built-in standard C timezone handling, > which is generally excellent, to deal with the case > where a single server is showing web sites for > multiple timezones. > > currently i am faced with either: > > * adding in a fixed time offset for each site > OR > * hacking something in perl or C to update a > configuration script with the correct offset, using > the standard C library somehow, and then run that > once a day so it picks up daylight savings changes > across the world > > http://www.php.net/manual/function.date.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.notes (#5150) next »