You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <Ke...@Golux.Com> on 2004/05/04 12:17:49 UTC

[patch] add '-l' to rotatelogs for local time

one of the recurring issues we've seen is with people who
want rotatelogs to do its thing at midnight *local* time.
easily enough done with the offset argument -- but that
gets messy around the daylight savings issues.

the attached patch adds the '-l' option, which causes the
interval to be interpreted as local system time without
the user having to figure out nor change the offset.

it'll probably get a little weird at the transition times,
but this is what people have wanted.  *shrug*

if accepted for 1.3, i'll do the appropriate port to 2.[01].
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Ken.Coar.Org/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"


Re: [patch] add '-l' to rotatelogs for local time

Posted by Jeff Trawick <tr...@attglobal.net>.
Rodent of Unusual Size wrote:
> the attached patch adds the '-l' option, which causes the
> interval to be interpreted as local system time without
> the user having to figure out nor change the offset.

See also

http://issues.apache.org/bugzilla/show_bug.cgi?id=24417

(I haven't reviewed any of the patches at this point in time, but definitely +1 
in concept for such a modification.)

Re: [patch] add '-l' to rotatelogs for local time

Posted by André Malo <nd...@perlig.de>.
* Rodent of Unusual Size <Ke...@Golux.Com> wrote:

> Rodent of Unusual Size wrote:
> 
> > one of the recurring issues we've seen is with people who
> > want rotatelogs to do its thing at midnight *local* time.
> > easily enough done with the offset argument -- but that
> > gets messy around the daylight savings issues.
> > 
> > the attached patch adds the '-l' option, which causes the
> > interval to be interpreted as local system time without
> > the user having to figure out nor change the offset.
> > 
> > if accepted for 1.3, i'll do the appropriate port to 2.[01].
> 
> okey, i'm going to assume lazy consensus on this in 72 hours
> and commit it.  so speak up now.. :-)

They current way is just other way round. 2.1 -> 2.0 -> 1.3...

nd

Re: [patch] add '-l' to rotatelogs for local time

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
Rodent of Unusual Size wrote:

> one of the recurring issues we've seen is with people who
> want rotatelogs to do its thing at midnight *local* time.
> easily enough done with the offset argument -- but that
> gets messy around the daylight savings issues.
> 
> the attached patch adds the '-l' option, which causes the
> interval to be interpreted as local system time without
> the user having to figure out nor change the offset.
> 
> if accepted for 1.3, i'll do the appropriate port to 2.[01].

okey, i'm going to assume lazy consensus on this in 72 hours
and commit it.  so speak up now.. :-)
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Ken.Coar.Org/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"