RE: PHP 5.0.1 Date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Wednesday, July 11, 2007 4:25 PM
To: Shafer, Philip
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxx
>
> --
> 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux