Regarding [PATCH] sysklogd: add -Z option to adjust message timezones

Venkat K venkat.konamki at gmail.com
Tue Feb 4 11:18:42 UTC 2020


Hi Busybox team,

I was using busybox version 1.15.2. One of my requirement  is I need a
timestamp in syslog message as localtime zone instead of GMT. I found below
patch link to adjust the timezones.
http://lists.busybox.net/pipermail/busybox/2017-May/085437.html .

>* +		if (G.adjustTimezone && strptime(msg, "%b %e %T", &nowtm)) {
*>* +			now = mktime(&nowtm) - timezone;
*>* +			timestamp = ctime(&now) + 4; /* skip day of week */
*>* +		} else {
*>* +			now = 0;
*>* +			timestamp = msg;
*>* +		}*


But i didn't get where *timezone *is defined and what it is contained, Can
you help us where it is defined and what it is contained.

Thanks,
Venkat K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200204/74faf6ac/attachment.html>


More information about the busybox mailing list