Re: Wrong time being displayed by PHP!
| From: | Daniel Brown | Date: | Wed, 17 Oct 2012 18:33:25 +0000 |
| Subject: | Re: Wrong time being displayed by PHP! | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319503@lists.php.net to get a copy of this message | ||
On Wed, Oct 17, 2012 at 2:28 PM, Richard S. Crawford
<rscrawford@mossroot.com> wrote:
>
> You can see the current output of the above code here:
>
> http://projectbench.extensiondlc.net
>
> I've confirmed that the server is set to PDT. The value of date.timezone in
> php.ini is "America/Los_Angeles", which should be (currently) -8 hours from
> UTC, but it looks like the PDT offset is only set to -4. Does that even make
> sense?
Yes,
date at the command line is showing it, and sure, the
timezone is showing as PDT on both ends, but it's also using -0400 for
the timezone. In any case, this is something your administrator needs
to handle, and isn't something with PHP or your code, from the looks
of it.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/