Page 1 of 1

logger timestamp

Posted: Mon May 30, 2005 01:51
by lindquist
This night I decided to find out why the Logger timestamp was offset by -1 hour, and -2 after we changed to summertime.

So - would'nt it be better to replace UTC time:
src/CEGUILogger.cpp line 77

Code: Select all

tm* etm = gmtime(&et);


with a local time call:

Code: Select all

tm* etm = localtime(&et);


After all CEGUI is very likely to be run locally.
Or maybe make it an option?

I'm just wondering if there was some "deeper meaning" with this...

Re: logger timestamp

Posted: Mon May 30, 2005 04:22
by _mental_
There's no reason not to use localtime. I've committed this change. Thanks for spotting it.