Idea: TZ offset
Francis J. Lacoste
flacoste at logreport.org
Fri Apr 11 19:44:52 CEST 2003
On dim, 2003-04-06 at 20:43, Kevin Krumwiede wrote:
> I run a site of local interest, but the hosting service is in another
> time zone. I would like to be able to offset all the times reported by
> lire to my own time zone.
>
> If this is already possible, please drop me a note as to how. (I'm not
> subscribed to the list.)
Thinking about it a little more, it is possible to achieve with
current Lire altough not very practical.
The idea is that we honor the TZ environment variable, that the
timestamp are stored in epoch format (which is GMT-based) and that
the parsing of the log file and the report generation are split.
So you could generate the DLF (distilled log format) from which
we generate the report with a different TZ (the one of the server) than
when you generate the report (TZ set to your timezone). Unfortunately,
you would need to run the DLF converter (combined2dlf, common2dlf, etc.)
yourself and use the "primitive" lr_dlf2xml command to generate the
report from it.
Anyway, thanks for the suggestion.
Francis J. Lacoste
--
Francis J. Lacoste . . http://www.logreport.org
/^LogReport$/ . . flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/questions/attachments/20030411/e707d761/attachment.bin
More information about the Questions
mailing list