From owner-freebsd-questions Mon Jul 22 07:09:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA08387 for questions-outgoing; Mon, 22 Jul 1996 07:09:40 -0700 (PDT) Received: from revelstone.jvm.com ([204.215.78.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA08382 for ; Mon, 22 Jul 1996 07:09:34 -0700 (PDT) Received: (from fbsdlist@localhost) by revelstone.jvm.com (8.6.12/8.6.12) id OAA05571; Mon, 22 Jul 1996 14:09:29 GMT Date: Mon, 22 Jul 1996 14:09:29 +0000 () From: Cliff Addy To: freebsd-questions@freebsd.org Subject: Log times in GMT, not local Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We've recently had to do a complete re-install of 2.1R because of a hard drive crash. However, since the system has come back up, many log files like the web server logs and mail logs have the date/time stamp in GMT rather than local time. What makes it truly weird is that occasionally (once a day, for several hours) the log times are correct. For example, here's an edited excerpt from the web server log: cs1-3.protocom.com - - [22/Jul/1996:13:01:42 +0000] "GET ... cs1-3.protocom.com - - [22/Jul/1996:13:01:44 +0000] "GET ... 194.72.197.155 - - [22/Jul/1996:09:08:51 -0400] "GET ... 198.187.18.72 - - [22/Jul/1996:09:11:48 -0400] "GET ... 198.187.18.72 - - [22/Jul/1996:09:11:49 -0400] "GET ... As you can see, it suddenly flops from +0000 (GMT) to -0400 (EDT). A reboot consistently sets it to GMT. However, the maillogs at the same time were consistently in local time. Sometimes they flop with the server logs, sometimes not. I've tried tzset, with no effect. I can find no consistent event that occurs at the flipflop point. I've also written some C programs and the timezone information coming from functions like locatime() looks ok, i.e. a "seconds west of GMT" value of 14400. I'm stuck here. Any other things to try? Cliff