[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] sysklogd: add -Z option to adjust message timezones
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2017-09-01 14:45:48
Message-ID: CAK1hOcNvyrA1o10HH9x3dqptPK+ajKtjo1KqJ1+fwBud3hm-uw () mail ! gmail ! com
[Download RAW message or body]

On Mon, May 8, 2017 at 11:45 PM, Shiz <hi@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?
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic