How can I fix incorrect date and times displayed in the extension?

Server Time

Our extensions require that the date, time, and timezone be set correctly on the server. You can check if the timezone is set correctly using the command below. It should be symlinked properly to the correct timezone as that is what the extension uses to determine the timezone:

# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 36 Oct 30  2020 /etc/localtime -> /usr/share/zoneinfo/America/Edmonton

How to set the timezone in Linux

https://linuxize.com/post/how-to-set-or-change-timezone-in-linux/

How to change the Time Zone by Creating a Symlink

https://linuxize.com/post/how-to-set-or-change-timezone-in-linux/#changing-the-time-zone-by-creating-a-symlink

MySQL Timezone

Some time columns uses the MySQL NOW() function for generating time information. You can check to see that the timezone is set correctly for the database using the commands below:

mysql -u admin -p`cat /etc/psa/.psa.shadow` -s -N -e "SELECT NOW();"
2022-06-12 02:01:16

How to set the timezone in MySQL

https://phoenixnap.com/kb/change-mysql-time-zone

Checking if the time is stored correctly in the Warden database

You can query the msgs log table from the command line to check if the last records have the correct time:

mysql -u admin -p`cat /etc/psa/.psa.shadow` -s -N -e "use danami_warden; select time_iso, subject, from_addr from msgs order by time_iso DESC limit 5;" 
  • timezone, time
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I fix the error: Host '127.0.0.1' is not allowed to connect to this MariaDB server?

When looking at the server mail log you see this: Apr 4 11:01:15 alma amavis[3540852]:...

ClamAV will not start. How can I fix the ClamAV error: daily.{c[vl]d,inc} was not met?

ClamAV refuses to start and when viewing the status you see...

How can I fix any statistics generation problems?

Missing the Warden Crontab Entry There is a crontab entry that will update Warden statistics...

How can I fix the error: "milter-reject: END-OF-MESSAGE from..." in the log and found the AV in error (cannot read /etc/clam.d/scan.conf).

Cloudlinux / Imunify360 added their own version of ClamAV to their repo which accidentally...

How can I fix the error: Can't connect to TCP port 10024 on 127.0.0.0 [Address already in use] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...