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.

Timezone for server is being ignored

August 04, 2010 1:11pm

Subscribe [3]
  • #1 / Aug 04, 2010 1:11pm

    myobie

    7 posts

    I am running EE 1.6.9 and I have the server set the Pacific time (which it is) and my admin user set to Eastern time and I have the checkbox checked to make my user’s timezone the site’s default.

    However, when doing this, anything I enter into a field that is a date type (not the master Publish Date) it shows up on the site as three hours further ahead than what I enter in the admin. Editing the entry shows the date/time as 6:00 PM but on the site it shows up as 9.

    So just to try, I changed the server’s timezone to Eastern. This had no effect on the times output in either the admin or the public facing site.

    What can I do to make the date/time’s agree with each other?

  • #2 / Aug 04, 2010 7:44pm

    Brandon Jones

    5500 posts

    myobie,

    The behavior you’re describing sounds correct. When viewing the public site, are you logged in as admin or logged out? Have you tried creating a new entry since changing the server time zone?

  • #3 / Aug 05, 2010 12:23am

    myobie

    7 posts

    What I am describing happens for both logged in and logged out uses.

    We have note created new entries since changing the settings.

    Our goal is to have it where we type in 3:00PM into the admin and on the site it shows 3:00PM. Is this achievable?

  • #4 / Aug 05, 2010 3:06am

    John Henry Donovan

    12339 posts

    myobie,

    Can you add these extra formatting options to your custom date field in your template.
    What do they return?

    {date format="%F %d %Y %Q %T %Z"}

    %Q - local server time zone offset, in hours and seconds, against GMT (e.g. “+06:00”)
    %T - Time zone setting of this machine (“MDT”)
    %Z - time zone offset in seconds (”-43200” to “43200”). The offset for time zones west of UTC is always negative, and for those east of UTC is always positive.

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

ExpressionEngine News!

#eecms, #events, #releases