ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Time Zone not Being Respected

September 05, 2008 6:19pm

Subscribe [2]
  • #1 / Sep 05, 2008 6:19pm

    matthew235

    12 posts

    Hey all! 

      I have my server set to central time, and also EE is set to central time. 
    DST = “no”.  Do you have any idea what may account for the following discrepancy?

    echo date("Y-m-d H:i:s") . " server time \r\n";
    echo "{current_time format="%Y-%m-%d %H:%i:%s"} EE time \r\n";

    Displays the following:

    2008-09-05 16:11:40 server time (From PHP)
    2008-09-05 14:11:39 EE time   (From current_time)

  • #2 / Sep 05, 2008 6:57pm

    Sue Crocker

    26054 posts

    Which one is right?

  • #3 / Sep 05, 2008 7:36pm

    matthew235

    12 posts

    The server time that i get with the php code is right. 

    Also, an update…. I changed my admin account’s timezone to central time also, and the EE time moved forward one hour, but there is still an hour discrepancy.

    2008-09-05 17:37:25 | server time with php date() <—- correct

    2008-09-05 16:37:25 | EE time with {current_time} <—- one hour behind.

     

    Server Time is set to central, EE is set to central, My account is set to central, DST is off.

  • #4 / Sep 07, 2008 12:51pm

    Robin Sowell

    13255 posts

    Hm- DST for your personal localization is also set to ‘No’?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases