You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/02/07 10:15:03 UTC

DO NOT REPLY [Bug 46616] rotatelogs -l uses UTC when calling strftime()

https://issues.apache.org/bugzilla/show_bug.cgi?id=46616


bburette <bb...@noos.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bburette@noos.fr
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from bburette <bb...@noos.fr>  2009-02-07 01:15:01 PST ---
In the configuration used there "rotatelogs" was running in a chrooted
environment and could not access the files for timezone information so it was
in fact using GMT time instead of localtime in all date/time related stuff.

Adding the proper timezone files to the chrooted environment solved the bug.

Still, the documentation improperly states (and led me to think there was a
bug)

-l
    Causes the use of local time rather than GMT as the base for the interval
or for strftime(3) formatting with size-based rotation. Note that using -l in
an environment which changes the GMT offset (such as for BST or DST) can lead
to unpredictable results!

where I would rather read

-l
    Causes the use of local time rather than GMT as the base for the interval
and for strftime(3) formatting. Using -l in an environment which changes the
GMT offset (such as for BST or DST) is safe.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org