Page 1 of 1

Timezone problems with 1.24.2

Posted: Thu Feb 10, 2011 3:24 pm
by gdullisse
Hello, I am new to ZM. I have installed Ubuntu 10.10 and zoneminder 1.24.2. I had set up the timezone but noticed that time in the main console, camera window and events were all off by an hour.

After setting up the TZ environment variable in /etc/init.d/zoneminder and exporting it that corrected the time in the timestamp for the camera images. (C and C++ code that use time functions).

Then I changed the php.ini in both the apache2 and cli in /usr/php5/ and that fixed the console time displayed (Php web pages time)

Now all the event times are off by 1 hour still so it looks like there are issues with perl5.10 Manip so I was wondering if anyone else ran into these and has successfully fixed them (perl scripts)?

It might be a good topic in the FAQs since it is not covered.

Thanks in advance
Cheers
Giancarlo :)

Posted: Thu Feb 10, 2011 9:19 pm
by gdullisse
Well, the changes I made to the PHP stopped working. As far as I can tell this must be an issue with the environment variables zoneminder spawns its processes and does not have environment information about the timezone (ie. TZ environement variable is not set).

I will try and dig more but any help is appreciated. Will start from the init.d script to see what perl or PHP scripts.

Posted: Fri Feb 11, 2011 4:54 pm
by gdullisse
I have been able to get all the different time displays to all be the same. I set up the /etc/localtime symlink to my timezone and added TZ environment to the ZM perl scripts and everything seems to be ok now.

Will monitor.