Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

NGINX Using UTC Even though I set timezone?

xaitmixaitmi Member
edited August 2016 in Help

Hi I have a Ramnode CEntos 6 64 bit vps openvz

I set the timezone to New_York and when I run the date command it gives the correct date/time.

But nginx has a mind of its own

Correct Time: Thu Aug 4 22:36:42 EDT 2016

php time: 2016-08-05 02:36:42

In my script I even tried putting

putenv("TZ=America/New_York");

But it didn' make a difference

Comments

  • trewqtrewq Administrator, Patron Provider, Veteran
    edited August 2016

    You probably need to set date.timezone in your php.ini or even remove it

    Thanked by 1xaitmi
  • @trewq said:
    You probably need to set date.timezone in your php.ini or even remove it

    That did the trick. Thank you!

    Thanked by 1trewq
Sign In or Register to comment.