• I’m noticing a new issue with time zones on my site on PHP 5.6. In Settings -> General if I set the Timezone to -7 the time where I am (in Denver) is correct:

    Universal time (UTC) is 2018-01-07 21:21:31. Local time is 2018-01-07 14:21:31.

    But if I set the Timezone to “Denver” it moves the UTC and local times:

    Universal time (UTC) is 2018-01-07 14:21:13. Local time is 2018-01-07 07:21:13.

    I’ve always had it set to “Denver” and only recently noticed that my times were wrong. Shouldn’t both settings for Timezone result in the same time? What does this symptom indicate? PHP is reporting the correct time. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In php.ini, is the timezone set to “America/Denver”?

    Thread Starter Glowball

    (@glowball)

    I don’t see a timezone setting at all in php.ini (I only have cPanel access on a dedicated, managed server).

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I don’t know if that might be the issue, but here’s what you need in php.ini

    [Date]
    ; Defines the default timezone used by the date functions
    ; https://php.net/date.timezone
    date.timezone = 'America/Denver'
    Thread Starter Glowball

    (@glowball)

    I’ll make the request and let you know if that solves it. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Settings Timezone City is Wrong’ is closed to new replies.