Re: note 8548 added to date
| From: | J. M. Castagnetto | Date: | Mon, 18 Sep 2000 11:44:35 +0000 |
| Subject: | Re: note 8548 added to date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5149@lists.php.net to get a copy of this message | ||
Are you perchance referring to the variable simply as
$TZ?
The following code works OK on PHP 4.0.2:
<?php
putenv("TZ=Europe/Rome");
echo getenv("TZ");
?>
You could just try:
$TZ = getenv("TZ");
somewhere in your code. See also the safe_mode_*,
variables_order, and other directives in your php.ini
Your note has been removed. BTW, bug reports or
questions should be posted to bugs.php.net or the PHP
general list respectively (see "Support" in
www.php.net for more information)
--- 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/