Page 1 of 1

Timestamp issue

Posted: Mon Nov 15, 2021 12:31 pm
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

Re: Timestamp issue

Posted: Mon Nov 15, 2021 6:43 pm
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).

Re: Timestamp issue

Posted: Tue Nov 16, 2021 4:39 pm
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