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.
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?
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
You probably need to set date.timezone in your php.ini or even remove it
That did the trick. Thank you!