• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Plesk timezone issues

D

Dan F

Guest
Hi guys,

I am having a bit of a nightmare! I recently ran 'yum upgrade' and also updated Plesk through the upgrade manager, and now I have the 9.2.2 version.

Since doing this, the timezone on my system has been totally wrong. It jumped from UTC to EDT, and I successfully sorted that out. My system `date` now returns UTC correctly.

Inside Plesk, if I use the Server -> System time and select GMT from the list, it reverts my `date` to EDT (?!), yet if I use 'UTS' it puts it back to UTC in `date`.

Since doing this, I've been having problems with PHP too which is causing major issues for us.

If I use:

PHP:
echo gmdate('Y-m-d H:i:s');
echo date('Y-m-d H:i:s', strtotime('2009-10-15 01:44:55'));

I correctly get the same timezone (no major differences).

However, a datetime from mysql formatted like ".date('M d H:i:s Y', strtotime($myrow['dateadded']))." is adding on 4 hrs..? The datetime in the SQL database is *correct*.

I was wondering if anyone had any ideas how to resolve this?

Thank you.
 
Back
Top