From 40244c2859246e5ef273483f858fef24db949a76 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 21 Oct 1996 19:51:34 +0000 Subject: [PATCH] unset TZ from the environment so the timestamp gets the system default, which is what syslogd presumably uses too. Notice that the "protocol" is bogus in not defining the timezone. "protocol" because it hardly deserves the name :-) closes bin/1739 Reported by: Stefan Zehl --- usr.bin/logger/logger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c index 3fd3b6b2030..5cb3409fede 100644 --- a/usr.bin/logger/logger.c +++ b/usr.bin/logger/logger.c @@ -72,6 +72,7 @@ main(argc, argv) tag = NULL; pri = LOG_NOTICE; logflags = 0; + unsetenv("TZ"); while ((ch = getopt(argc, argv, "f:ip:st:")) != EOF) switch((char)ch) { case 'f': /* file to log */