From nobody@FreeBSD.org  Tue Apr 30 02:35:47 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 7839637B405
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Apr 2002 02:35:47 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3U9Zlf62991;
	Tue, 30 Apr 2002 02:35:47 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204300935.g3U9Zlf62991@freefall.freebsd.org>
Date: Tue, 30 Apr 2002 02:35:47 -0700 (PDT)
From: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: installworld misunderstands timezone?
X-Send-Pr-Version: www-1.0

>Number:         37591
>Category:       misc
>Synopsis:       installworld misunderstands timezone?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 30 02:40:02 PDT 2002
>Closed-Date:    Mon May 06 23:58:14 PDT 2002
>Last-Modified:  Mon May 06 23:58:14 PDT 2002
>Originator:     FUJIMOTO Kou
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Tokyo Denki University
>Environment:
FreeBSD fosters.huz.203.141.147.136.user.at.il24.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Apr 30 10:40:28 JST 2002     root@fosters.huz.203.141.147.136.user.at.il24.net:/usr/obj/usr/src/sys/FOSTERS  i386

>Description:
Around 11AM today (Japan Standard Time), I did "make installkernel" and "make installworld", and then I found: 
-r-xr-xr-x  1 root  wheel  3294168  4 30 10:55 /boot/kernel/kernel
-r-sr-xr--  1 root  network  331732  4 30 20:11 /usr/sbin/ppp
That is, "make installkernel" process sets timestamp 
correctly to local time, while "make installworld" misunderstands that the system time is set to GMT and set timestamp to (system time) + 9hours (offset for JST). 

>How-To-Repeat:

>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37591: installworld misunderstands timezone?
Date: Thu, 2 May 2002 23:09:07 -0700

 On Tue, Apr 30, 2002 at 02:35:47AM -0700, FUJIMOTO Kou wrote:
 [snip]
 
 > Around 11AM today (Japan Standard Time), I did "make installkernel" and "make installworld", and then I found: 
 > -r-xr-xr-x  1 root  wheel  3294168  4 30 10:55 /boot/kernel/kernel
 > -r-sr-xr--  1 root  network  331732  4 30 20:11 /usr/sbin/ppp
 > That is, "make installkernel" process sets timestamp 
 > correctly to local time, while "make installworld" misunderstands that the system time is set to GMT and set timestamp to (system time) + 9hours (offset for JST). 
 
 Did you do 'installkernel' in multiuser mode and 'installworld' in
 single user? Do you have the CMOS clock set to localtime? Did you
 start adjkerntz(8) before running 'installworld' if you were in single
 user?
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
State-Changed-From-To: open->feedback 
State-Changed-By: cjc 
State-Changed-When: Mon May 6 22:44:00 PDT 2002 
State-Changed-Why:  
Can the submitter verify this didn't arise from being in single-user 
mode without adjkerntz(8) on a machine with a localtime CMOS clock? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37591 

From: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
To: "Crist J. Clark" <cjc@FreeBSD.ORG>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37591: installworld misunderstands timezone?
Date: Tue, 07 May 2002 15:29:25 +0900

 Oops, I exactly did what cjc wrote except executing "adjkerntz"
 manually, which is also written in /usr/src/UPDATING.
 
 It's never a bug but my fault...so sorry...
 
 "Crist J. Clark" wrote:
 
 > Did you do 'installkernel' in multiuser mode and 'installworld' in
 > single user? Do you have the CMOS clock set to localtime? Did you
 > start adjkerntz(8) before running 'installworld' if you were in single
 > user?
 
 -- 
 FUJIMOTO Kou, Tokyo Denki University
State-Changed-From-To: feedback->closed 
State-Changed-By: cjc 
State-Changed-When: Mon May 6 23:57:16 PDT 2002 
State-Changed-Why:  
Submitter says it was an adjkerntz(8)-single-user-localtime-CMOS 
issue.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=37591 
>Unformatted:
