Timezones driving me crazy.. any ideas?
I'm having a hard time getting time in php scripts to be correct.. let me explain..
root@core [~]# date
Fri Feb 21 15:08:05 CST 2003
Fri Feb 21 15:08:05 CST 2003
root@core [~]# hwclock
Fri 21 Feb 2003 03:09:18 PM CST 0.744761 seconds
Fri 21 Feb 2003 03:09:18 PM CST 0.744761 seconds
This PHP Script
PHP Code:
<?php
echo date("G:i:s A O");
?>
3:10:30 AM +0600
This has been driving me crazy, any ideas?
[EDIT:Fixed]
I recompiled apache/php and everything is wroking great. PHP must gather timezone info at compile time and keep it hard coded somewhere.