Busybox syslogd with -Z saves timestamps one hour behind
I noticed that entries of Busybox syslogd at /var/log/messages have the wrong timezone: all timestamps are one hour behind localtime.
Steps to reproduce:
1 - Do a fresh install of alpine 3.8
2 - Read /var/log/messages
Example output (from a fresh alpine 3.8 install):
<code>
test:~# ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Aug 19 04:03 /etc/localtime -> /etc/zoneinfo/America/Los_Angeles
test:~# date
Sun Aug 19 04:13:37 PDT 2018
test:~# logger "$(date)"
test:~# tail /var/log/messages
Aug 19 03:05:40 test auth.info login[2116]: root login on 'tty1'
Aug 19 03:05:43 test daemon.info chronyd[2036]: Selected source 80.127.152.30
Aug 19 03:05:51 test user.notice root: Sun Aug 19 04:05:51 PDT 2018
Aug 19 03:06:49 test daemon.info chronyd[2036]: Selected source 212.45.35.66
Aug 19 03:11:08 test daemon.info chronyd[2036]: Selected source 213.154.236.182
Aug 19 03:12:56 test auth.info sshd[2115]: Received signal 15; terminating.
Aug 19 03:12:56 test auth.info sshd[2176]: Server listening on 0.0.0.0 port 22.
Aug 19 03:12:56 test auth.info sshd[2176]: Server listening on :: port 22.
Aug 19 03:13:22 test auth.info sshd[2181]: Accepted password for root from 192.168.122.1 port 34502 ssh2
Aug 19 03:13:43 test user.notice root: Sun Aug 19 04:13:43 PDT 2018
</code>
(from redmine: issue id 9279, created on 2018-08-19, closed on 2019-03-05)
- Changesets:
- Revision 397f0cd9 on 2019-02-15T22:23:00Z:
main/busybox: upgrade to 1.30.0
Notable changes:
* The sysklogd -Z option has been removed in favor of -t option
which has been added by upstream.
* Our own nologin.c applet has been replaced by an upstream
nologin shell applet.
* New bc applet.
OK ncopa@
Fixes #9279
Fixes #7818