RE: [PHP] PHP 5.0.1 Date
| From: | Shafer, Philip | Date: | Thu, 12 Jul 2007 13:43:31 +0000 |
| Subject: | RE: [PHP] PHP 5.0.1 Date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258690@lists.php.net to get a copy of this message | ||
Yes, TZ env var helps and it works when I use putenv().
However if I set TZ in the server, and restart apache/php, TZ is getting
wiped out.
I think my server admin and I have to do some poking around to figure
out why.
Thanks for the help.
-phil
-----Original Message-----
From: Richard Lynch [mailto:ceo@l-i-e.com]
Sent: Wednesday, July 11, 2007 4:25 PM
To: Shafer, Philip
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP 5.0.1 Date
Almost for sure from the TZ environment variable, and almost for sure
there's more about it in the FAQ, IIRC:
http://php.net/faq.php
On Wed, July 11, 2007 11:14 am, Shafer, Philip wrote:
> The time reported by the date() function is off by one hour.
>
> Currently our server is configured to EDT (-400) time zone, however
> our
> php installation is reporting the timezone at EST (-500).
>
> I know in php 5.1.x you can set the timezone in php.ini. However
> we're
> not prepared to update php at the moment.
>
> Can anybody let me know where PHP 5.0.1 gets the timezone information
> from? How can I change this so PHP returns the proper date.
>
> Thanks,
>
> Phil
>
> -------------------
> Philip Shafer
> Web Programmer
> University Web Services
> Rowan University
> Glassboro NJ 08028
> 856-256-4418
> shafer@rowan.edu
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?