[PATCH] sysklogd: add -Z option to adjust message timezones
Denys Vlasenko
vda.linux at googlemail.com
Fri Sep 1 14:45:48 UTC 2017
On Mon, May 8, 2017 at 11:45 PM, Shiz <hi at shiz.me> wrote:
> Some syslog() implementations like musl's[1] always send timestamps in UTC.
> This change adds a new option to syslogd, -Z, to assume incoming timestamps
> are always UTC and adjust them to the local timezone (of the syslogd) before
> logging.
I'm not sure about this.
Unfortunately, syslog() API has no defined rules on how timestamps are produced
and formatted.
How do we know that strptime(msg, "%b %e %T", &nowtm) will work to parse
timestamp?
More information about the busybox
mailing list