CQRLog doesnt use UTC

5 posts / 0 new
Last post
G8FXM
G8FXM's picture
CQRLog doesnt use UTC

When I log calls in CQRLog it seems to be using the local system time. Most other logging programs I've used log call in UTC or GMT, am I doing something wrong or is this a bug?

ok2cqr
ok2cqr's picture
Re: CQRLog doesnt use UTC

Hi Dave,

no, it's not a bug is a feature :), but I agree no so good feature. It's also on my todo list. I wanted to fix it into 1.0.0 but it seems to be not so easy and there is hig possibility that I make a mistake, I decided to do it after 1.0.0 release. So please stay tuned. Thank you!

73 Petr, OK2CQR

G8FXM
G8FXM's picture
Ok I'll keep readjusting my

Ok I'll keep readjusting my PC clock on login until you add this feature ;-) Thanks.

73'd De Dave, G8FXM O/S Linux Mint 18.1 KDE Plasma 64 bit  g8fxm@uksmg.org

AB1KW
AB1KW's picture
MySQL knows UTC - get UTC offset from MySQL ?

Since CQRLog now uses MySQL as the database back-end, would it be possible for CQRLog to simply ask MySQL for the time every hour at the top of the hour, to see if the UTC offset changed?

Yes, this is ugly - but since Pascal/Delphi/Lazarus do not seem to provide an API to get UTC, there may not be much of a choice...

This may need to be a "get UTC offset from MySQL" config option, since some people may not have proper timezones configured on their system (having the BIOS at localtime and their system at offset 0000).

ok2cqr
ok2cqr's picture
Re: MySQL knows UTC - get UTC offset from MySQL ?

Yes, FreePascal has api for that. I'm going to add to new version, soon.

73 Petr, OK2CQR