Results 1 to 2 of 2

Thread: Timezone wrong in PHP?

  1. #1
    Registered Member
    Join Date
    Jan 2003

    Default Timezone wrong in PHP?

    not sure whats wrong here. I recently installed cPanel and php timezone is all wrong..

    let me explain..
    root@core [~]# date
    Fri Feb 21 15:08:05 CST 2003
    Ok so the server system time is correct
    root@core [~]# hwclock
    Fri 21 Feb 2003 03:09:18 PM CST 0.744761 seconds
    Hardware clock is also correct.
    This PHP Script
    PHP Code:
    echo date("G:i:s A O" );
    gives the following output:
    3:10:30 AM +0600
    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....
    This has been driving me crazy, any ideas?

    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 by Kyle; 02-21-2003 at 05:40 PM.

  2. #2
    Registered Member
    Join Date
    Nov 2003



    hwclock --systohc

    and restart httpd
    Last edited by xphost; 05-27-2004 at 07:48 AM.

Similar Threads

  1. Default timezone and date.timezone
    By Astral God in forum General Discussion
    Replies: 1
    Last Post: 12-31-2012, 03:18 AM
  2. PHP Timezone
    By petaglx in forum General Discussion
    Replies: 1
    Last Post: 09-03-2012, 09:33 PM
  3. Roundcube e-mail timezone detected wrong
    By Vliegtuig in forum E-mail Discussions
    Replies: 6
    Last Post: 06-18-2011, 05:30 PM
  4. Replies: 1
    Last Post: 03-02-2009, 06:26 AM
  5. Is there something wrong on my PHP , can you help please?
    By Empyrium in forum General Discussion
    Replies: 3
    Last Post: 08-21-2007, 07:26 AM