Page 1 of 1

Timezone settings are reversed in live camera view

Posted: Thu Jun 02, 2016 3:56 pm
by QuasiMondo
I'm running ZM on a Raspi2 (w/ Raspbian Jessie). I currently have one USB camera connected to it while I get everything set up for additional cameras that will stream over WiFi. Everything is good, except for the fact that the time zone adjustments seem to be reversed in the live view mode.

Example: I'm in Ethiopia right now, so I have the system set to GMT +3, both on the Pi itself, and through the php.ini file in ZM (Africa/Addis_Ababa). When I go to the console, the time shows up correctly. When I SSH into the pi and check the time, it shows up correctly there too. But when I view my lone USB camera, the the time is three hours behind GMT, but it still indicates that it's GMT +3. If I trigger an event, it logs the event with the correct time, but the reversed adjustment only shows up when I have a live view of the camera.

Is this a bug, or did I miss a configuration somewhere?

Re: Timezone settings are reversed in live camera view

Posted: Mon Jun 06, 2016 1:21 am
by linforpros
QuasiMondo wrote: But when I view my lone USB camera, the the time is three hours behind GMT, but it still indicates that it's GMT +3.
It would be helpful to see the above. Can you paste it here?

Re: Timezone settings are reversed in live camera view

Posted: Thu Jun 09, 2016 5:13 am
by QuasiMondo
Will post screenshots later today

Re: Timezone settings are reversed in live camera view

Posted: Thu Jun 09, 2016 6:38 pm
by QuasiMondo
Looks like it's an issue with tzdata on my pi...

Code: Select all

Current default time zone: 'Etc/GMT+3'
Local time is now:      Thu Jun  9 15:37:31 GMT+3 2016.
Universal Time is now:  Thu Jun  9 18:37:31 UTC 2016.
Obviously not an issue with ZM, I'll keep digging around for a fix for this

Re: Timezone settings are reversed in live camera view

Posted: Thu Jun 09, 2016 11:31 pm
by linforpros
Perhaps you should start with RTC on the motherboard, in the BIOS. then proceed to tzdata as that is software in the OS. Check hardware time setting of both the camera and your motherboard Bios first.

Re: Timezone settings are reversed in live camera view

Posted: Fri Jun 10, 2016 6:19 am
by QuasiMondo
No RTC on the Pi, they lose their time as soon as you unplug them. To make up for that, I installed a USB GPS module to keep the time accurate.

Did some more researching on TZ data, not sure if reversing the time zones is a bug[url] or a [url=https://github.com/eggert/tz ... ra]feature, but I'll probaly just reinstall tzdata and see if that helps