Page 1 of 1

UTC time in monthly logs

Posted: Fri 17 Dec 2021 9:22 pm
by facchetz
Hi there, I'm Daniel from Italy. I use CumulusMX for a few weather stations and a problem I noticed is the time in the monthly log files. I use these files for a centralized database of all the weather stations of a association (www.meteopassione.com). On the Raspberry Pi the time is setted to local time (GMT+1 with daylight savings time) so the problem is that in the log files in the time change days there were some problems... I can't change the time on the Raspberry because of the crontab and so on... Could you consider to make an option to save the time in log file in UTC?

Thank you so much and congratulations for the excellent work done so far, especially for the linux version of the software!

Re: UTC time in monthly logs

Posted: Sat 18 Dec 2021 1:42 pm
by mcrossley
The next major version of Cumulus will probably change the log files slightly. The text date/time will remain in local time for backwards compatibility, but the proposal is to add an additional Unix timestamp value, which of course is always in UTC.

Re: UTC time in monthly logs

Posted: Wed 22 Dec 2021 12:11 pm
by facchetz
Hi mrcrossley, good idea! Do you know when this major release will come out?

Re: UTC time in monthly logs

Posted: Wed 22 Dec 2021 12:36 pm
by rogerthn
facchetz wrote: Fri 17 Dec 2021 9:22 pm ... On the Raspberry Pi the time is setted to local time (GMT+1 with daylight savings time) so the problem is that in the log files in the time change days there were some problems...
I did have similar problems on a Raspberry Pi running Domoticz, missing/duplicated hours.
I did ended up setting time to UTC on the RPI and in MariaDB I do have UTC and CONVERT_TZ(LastUpdateUTC, 'UTC', 'Europe/Stockholm') :D

Re: UTC time in monthly logs

Posted: Wed 22 Dec 2021 1:29 pm
by mcrossley
facchetz wrote: Wed 22 Dec 2021 12:11 pm Hi mrcrossley, good idea! Do you know when this major release will come out?
Next year, maybe!

Running your rPi in UTC is a solution a few people use.