not sure whats wrong here. I recently installed cPanel and php timezone is all wrong..
let me explain..
This PHP Script
gives the following output:
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.
let me explain..
Ok so the server system time is correct[email protected] [~]# date
Fri Feb 21 15:08:05 CST 2003
Hardware clock is also correct.[email protected] [~]# hwclock
Fri 21 Feb 2003 03:09:18 PM CST 0.744761 seconds
This PHP Script
PHP:
<?php
echo date("G:i:s A O" );
?>
This is very frustrating. I've set the time correct (as far as I know) in every place I can think of, and set it as GMT-6. PHP refuses to recognize that and formats EVERYTHING as GMT+6....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.
Last edited: