Page 1 of 1
Date and Time is Wrong
Posted: Wed May 16, 2018 2:56 pm
by geraldbrandt
Hi,
When viewing live video, or saving video with x264 encoding (which saves the timestamp), the data and time displayed over the video by Zoneminder is correct. However, the time stamp in the events list and event playback (video playback overlay) are wrong. It's 5 hours out, which is how far off from UTC I am (I'm CDT).
Linux has the right timezone in /etc/timezone (America/Chicago), and the php.ini file does as well.
Is there another setting I'm missing?
Gerald
Re: Date and Time is Wrong
Posted: Thu May 17, 2018 12:40 am
by bbunge
Did you check the time in the camera? If the location/time in the upper left, from Zoneminder, is right the one in the overlay, bottom center, is from the camera.
Re: Date and Time is Wrong
Posted: Thu May 17, 2018 12:12 pm
by geraldbrandt
Hi,
The one in the bottom overlay is from Zoneminder when playing back h264 streams, and the time displayed there is the same as the event time in the event list, but different than what zoneminder puts in the upper right corner. The one in the upper corner is correct.
Gerald
Re: Date and Time is Wrong
Posted: Tue May 22, 2018 5:14 pm
by geraldbrandt
It seems to have auto -corrected itself.
Re: Date and Time is Wrong
Posted: Tue Jul 10, 2018 9:55 am
by touliloup
The problem seems to be corrected for you, but I just got the same problem and will post the solution here to help other that would land here like I did.
For me the problem was the database timezone. ZoneMinder timezone was ok, thus displaying the correct timestamp on the camera view and in the interface, and displaying the incorrect time for events.
Changing the database timezone corrected the problem for me.
Re: Date and Time is Wrong
Posted: Tue Jul 10, 2018 11:43 am
by rockedge
I have had to stop the mysql server and restart it after initial installation to let the time sync with the web sever setting and the machine clock or insure the time settings in the mysql or mariaDB match what is set in the php.ini