logger timestamp

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

logger timestamp

Postby lindquist » Mon May 30, 2005 01:51

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...

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: logger timestamp

Postby _mental_ » Mon May 30, 2005 04:22

There's no reason not to use localtime. I've committed this change. Thanks for spotting it.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests