Item12942: Foswiki::Logger logs in "gmtime"

pencil
Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: FoswikiLogger
Branches: trunk master
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
The foswiki Logger writes in "gmtime", not "servertime"

My systems all run on GMT in the hardware clock, and with localtime set to the EST5EDT offset. Foswiki log is the only log I've found that records in GMT. Apache, Syslog, all record in the servertime.

For consistency with other logs, we probably ought to log in servertime. See Item895

-- GeorgeClark - 13 Jun 2014

Is this sometihng that has to be configurable, or can we just change the loggers to use servertime

-- GeorgeClark - 13 Jun 2014

This breaks the logging tests. And the unit test will loop and run the system out of memory. Temporarily disabling the tests. (If tests fail that have redefined the logger time routine, the plainfile rotate code will use the wrong time and attempt to rotate files for every year from now until forever.)

-- GeorgeClark - 17 Jun 2014

Deferring this for now. It breaks too many of the unit tests. Maybe we can tackle for 1.2, once some other more urgent tasks are fixed. Otherwise it will be deferred for 1.2.1 or 2.0.

-- GeorgeClark - 17 Jun 2014

-- ChrisModen - 04 Nov 2014

-- ChrisModen - 04 Nov 2014

Definitely have it default to servertime. Our servers work in 'local timezone'. Even in intl orgs, its usually the case that the 'local' time on the server is what's wanted (to be accurate, the timezone the server is set to is what it uses, even if it happens to physically be in another tz) and then its consistent for any program/person to deal with. hope that's clear as mud smile

-- ChrisModen - 04 Nov 2014
 
Topic revision: r10 - 18 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy