From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 03:31:49 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECD8016A417 for ; Sun, 20 Jan 2008 03:31:49 +0000 (UTC) (envelope-from bob89@bobj.org) Received: from eastrmmtao107.cox.net (eastrmmtao107.cox.net [68.230.240.59]) by mx1.freebsd.org (Postfix) with ESMTP id 85C9113C465 for ; Sun, 20 Jan 2008 03:31:49 +0000 (UTC) (envelope-from bob89@bobj.org) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080120033148.XTES8815.eastrmmtao107.cox.net@eastrmimpo01.cox.net> for ; Sat, 19 Jan 2008 22:31:48 -0500 Received: from mail.bobj.org ([70.185.102.217]) by eastrmimpo01.cox.net with bizsmtp id fFWg1Y00L4hS3Ka0000000; Sat, 19 Jan 2008 22:30:41 -0500 Received: from bob.wb4jcm.org (bob.wb4jcm.org [192.168.132.33]) (AUTH: PLAIN bobj, ) by mail.bobj.org with esmtp; Sat, 19 Jan 2008 22:31:47 -0500 From: Bob Johnson To: Joerg Schilling Date: Sat, 19 Jan 2008 22:31:46 -0500 User-Agent: KMail/1.9.7 References: <47927842.9laQQcD/42mYWXA0%Joerg.Schilling@fokus.fraunhofer.de> In-Reply-To: <47927842.9laQQcD/42mYWXA0%Joerg.Schilling@fokus.fraunhofer.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801192231.46700.bob89@bobj.org> Cc: questions@freebsd.org Subject: Re: Wrong times written by mkisofs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 03:31:50 -0000 On Saturday 19 January 2008 05:22:58 pm you wrote: > > Irecently built a CD of images to give to a friend. I noticed the > > timestamps displayed when I list the CD contents are five hours earlier > > than they should be. Five hours matches my GMT offset. This is a > > dual-boot system with Win XP, so the hardware clock is set to local time. > > > > E.g. a file on my hard drive has a correct timestamp > > -rw------- 1 bobo bobo 2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG > > > > while the same file on the resulting CD looks like > > -rw------- 1 bobo bobo 2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG > > > > The "date" command returns the correct local time. > > > > Did I do something incorrectly, or is this a bug in mkisofs? It appears > > to me that mkisofs decided to correct for GMT offset when it shouldn't > > have. > > > > Let me asume you use a _recent_ mkisofs and set up a correct timezone... > [...] > > What do you get from "mkisofs -version"? mkisofs 2.01 (i386-unknown-freebsd6.2) > What timezone do you have (how many hours from GMT and which location)? U.S. Eastern Standard Time (EST = GMT-5) > What do you have in the TZ= variable? It seems to be empty. > What do you see with "TZ=GMT ls -l ToJoe"? # TZ=GMT ls -l /mnt total 62113 -rw------- 1 bobj bobj 2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG -rw------- 1 bobj bobj 3346787 Jan 19 12:22 IMG_0661_080116_0524.JPG -rw------- 1 bobj bobj 3623969 Jan 19 12:22 IMG_0662_080116_0525.JPG -rw------- 1 bobj bobj 3966310 Jan 19 12:22 IMG_0663_080116_0526.JPG -rw------- 1 bobj bobj 3971338 Jan 19 12:22 IMG_0664_080116_0526.JPG -rw------- 1 bobj bobj 3946837 Jan 19 12:22 IMG_0665_080116_0528.JPG -rw------- 1 bobj bobj 3873753 Jan 19 12:22 IMG_0666_080116_0528.JPG -rw------- 1 bobj bobj 3832501 Jan 19 12:22 IMG_0667_080116_0529.JPG -rw------- 1 bobj bobj 3854064 Jan 19 12:22 IMG_0668_080116_0531.JPG -rw------- 1 bobj bobj 3849156 Jan 19 12:22 IMG_0669_080116_0532.JPG -rw------- 1 bobj bobj 3868314 Jan 19 12:23 IMG_0670_080116_0533.JPG -rw------- 1 bobj bobj 3901654 Jan 19 12:23 IMG_0671_080116_0534.JPG -rw------- 1 bobj bobj 3851665 Jan 19 12:23 IMG_0672_080116_0537.JPG -rw------- 1 bobj bobj 3850832 Jan 19 12:23 IMG_0673_080116_0538.JPG -rw------- 1 bobj bobj 3876448 Jan 19 12:23 IMG_0674_080116_0542.JPG -rw------- 1 bobj bobj 3866105 Jan 19 12:23 IMG_0675_080116_0543.JPG -rw------- 1 bobj bobj 3881576 Jan 19 12:23 IMG_0676_080116_0543.JPG These times are the correct LOCAL time, not GMT. The following are five hours off: # TZ=EST ls -l /mnt total 62113 -rw------- 1 bobj bobj 2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG -rw------- 1 bobj bobj 3346787 Jan 19 07:22 IMG_0661_080116_0524.JPG -rw------- 1 bobj bobj 3623969 Jan 19 07:22 IMG_0662_080116_0525.JPG -rw------- 1 bobj bobj 3966310 Jan 19 07:22 IMG_0663_080116_0526.JPG -rw------- 1 bobj bobj 3971338 Jan 19 07:22 IMG_0664_080116_0526.JPG -rw------- 1 bobj bobj 3946837 Jan 19 07:22 IMG_0665_080116_0528.JPG -rw------- 1 bobj bobj 3873753 Jan 19 07:22 IMG_0666_080116_0528.JPG -rw------- 1 bobj bobj 3832501 Jan 19 07:22 IMG_0667_080116_0529.JPG -rw------- 1 bobj bobj 3854064 Jan 19 07:22 IMG_0668_080116_0531.JPG -rw------- 1 bobj bobj 3849156 Jan 19 07:22 IMG_0669_080116_0532.JPG -rw------- 1 bobj bobj 3868314 Jan 19 07:23 IMG_0670_080116_0533.JPG -rw------- 1 bobj bobj 3901654 Jan 19 07:23 IMG_0671_080116_0534.JPG -rw------- 1 bobj bobj 3851665 Jan 19 07:23 IMG_0672_080116_0537.JPG -rw------- 1 bobj bobj 3850832 Jan 19 07:23 IMG_0673_080116_0538.JPG -rw------- 1 bobj bobj 3876448 Jan 19 07:23 IMG_0674_080116_0542.JPG -rw------- 1 bobj bobj 3866105 Jan 19 07:23 IMG_0675_080116_0543.JPG -rw------- 1 bobj bobj 3881576 Jan 19 07:23 IMG_0676_080116_0543.JPG I thought this system had been updated recently, but: # uname -a FreeBSD sniffles.bobj.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 so for my next trick, I will at least get it up to the lastest binary patch level, and try again. - Bob