RE: [PHP] Problem with getting time in EST
| From: | Jan Reiter | Date: | Sat, 04 Aug 2007 15:47:27 +0000 |
| Subject: | RE: [PHP] Problem with getting time in EST | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260183@lists.php.net to get a copy of this message | ||
Tedd:
you can set your default php timezone in the php.ini with the date.timezone
value.
What Server do you use? What OS?
I'm using apache2.x on win32, debian and fedora core. The time of Detroit
looks ok to compared to
times stated on world time pages on the internet.
After upgrading to PHP5, did you check for the latest version of PECL's
timezonedb.
I don't know if its included with the PHP package!
May be a bad question, but are the time and timezone settings of your HW
clock correct?? Just as the
very last option to check, if everything else fails ... ;-)
Jan
-----Original Message-----
From: tedd [mailto:tedd@sperling.com]
Sent: Saturday, August 04, 2007 5:02 PM
To: Jan Reiter; 'Crab Hunt'; php-general@lists.php.net
Subject: RE: [PHP] Problem with getting time in EST
Jan:
That's the problem, it doesn't work.
I have mine set for Detroit and it's an hour off Detroit time.
It kind of bugged me that when I upgraded to php5 that I had to
define the default time zone in my code, but then to find out that
it's off by an hour really ticks me off. What's the point of defining
a time zone if php5 isn't going to get it right?
All this time I thought that I was doing something wrong, but it
appears that this is a problem for others as well -- are we doing
something wrong?
Cheers,
tedd