Timestamp issue

Forum for questions and support relating to the 1.30.x releases only.
Locked
kassaiistvan
Posts: 2
Joined: Mon Nov 15, 2021 11:41 am

Timestamp issue

Post by kassaiistvan »

Hi folks!

After installing a ZM from docker image (koenkk/rpi-zoneminder) I noticed that the timestamp on the image differs from the time displayed on the Console (attached)
The timestamp settings of that monitor is : %N - %Y-%m-%d %H:%M:%S %z UTC
Somewhere on the internet I've found I should set the default time zone in the my.cnf to correct timezone. After it when I run a "select now();", it shows the correct date-time (before the setting it was in late 1 hour), but on the image still the same, that is in late.
Can I do anything with it, or should I live with this issue?

Thanks
Istvan
Attachments
date.png
date.png (58.91 KiB) Viewed 14261 times
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: Timestamp issue

Post by kitkat »

Try checking that date.timezone is set correctly in /etc/php.ini and that it agrees with the system timezone (/etc/localtime). If there's more than one entry, delete all but one of them.

You'll probably want to restart Apache after changing either of those (and maybe the syslog service if you change /etc/localtime).
Last edited by kitkat on Wed Nov 17, 2021 7:43 am, edited 1 time in total.
kassaiistvan
Posts: 2
Joined: Mon Nov 15, 2021 11:41 am

Re: Timestamp issue

Post by kassaiistvan »

kitkat wrote: Mon Nov 15, 2021 6:43 pm (/etc/localtime).
Yep, nailed! I've changed from UTC to europe/budapest and it works well.
Thanks.

Istvan
Locked