[Logwatch-Devel] Bug in applystddate (with different LOCALE)

Bjorn L. bl_logwatch at mblmail.net
Sun Jan 15 20:44:34 MST 2006


[My previous email did not post; sorry if a duplicate - this one has
  the patch.]

Kristian H. Resset wrote:
> Logwatch version: Latest stable: 7.1.1
> /usr/share/logwatch/scripts/shared/applystddate
> 
> Description:
> TimeFilter('%b %e %H:%M:%S') returns the date according to the server's
> LOCALE settings.

Kristian,

Thanks for posting the explanation of the problem.  Attached is a patch
to logwatch.pl to push the locale environment, as you suggested.  Using
"C" locale, similar to en_US for dates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logwatch.pl.patch
Type: text/x-patch
Size: 1544 bytes
Desc: not available
Url : http://ip70-176-100-107.ph.ph.cox.net/pipermail/logwatch-devel/attachments/20060115/6120e245/logwatch.pl.bin


More information about the Logwatch-Devel mailing list