Fix timestamp generation for syslog.