From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 18:44:07 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 2EA9116A419 for ; Sat, 19 Jan 2008 18:44:07 +0000 (UTC) (envelope-from bob89@bobj.org) Received: from eastrmmtai107.cox.net (eastrmmtai107.cox.net [68.230.240.14]) by mx1.freebsd.org (Postfix) with ESMTP id D794113C44B for ; Sat, 19 Jan 2008 18:44:06 +0000 (UTC) (envelope-from bob89@bobj.org) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080119182012.FLKO129.eastrmmtao101.cox.net@eastrmimpo01.cox.net> for ; Sat, 19 Jan 2008 13:20:12 -0500 Received: from mail.bobj.org ([70.185.102.217]) by eastrmimpo01.cox.net with bizsmtp id f6K51Y00J4hS3Ka0000000; Sat, 19 Jan 2008 13:19:06 -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 13:20:11 -0500 From: Bob Johnson To: questions@freebsd.org Date: Sat, 19 Jan 2008 13:20:09 -0500 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801191320.09985.bob89@bobj.org> Cc: Subject: 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: Sat, 19 Jan 2008 18:44:07 -0000 I recently 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. The sequence of operations I followed is below. - Bob # ls -l ToJoe total 62544 -rw------- 1 bobo bobo 2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG -rw------- 1 bobo bobo 3346787 Jan 19 12:22 IMG_0661_080116_0524.JPG -rw------- 1 bobo bobo 3623969 Jan 19 12:22 IMG_0662_080116_0525.JPG -rw------- 1 bobo bobo 3966310 Jan 19 12:22 IMG_0663_080116_0526.JPG -rw------- 1 bobo bobo 3971338 Jan 19 12:22 IMG_0664_080116_0526.JPG -rw------- 1 bobo bobo 3946837 Jan 19 12:22 IMG_0665_080116_0528.JPG -rw------- 1 bobo bobo 3873753 Jan 19 12:22 IMG_0666_080116_0528.JPG -rw------- 1 bobo bobo 3832501 Jan 19 12:22 IMG_0667_080116_0529.JPG -rw------- 1 bobo bobo 3854064 Jan 19 12:22 IMG_0668_080116_0531.JPG -rw------- 1 bobo bobo 3849156 Jan 19 12:22 IMG_0669_080116_0532.JPG -rw------- 1 bobo bobo 3868314 Jan 19 12:23 IMG_0670_080116_0533.JPG -rw------- 1 bobo bobo 3901654 Jan 19 12:23 IMG_0671_080116_0534.JPG -rw------- 1 bobo bobo 3851665 Jan 19 12:23 IMG_0672_080116_0537.JPG -rw------- 1 bobo bobo 3850832 Jan 19 12:23 IMG_0673_080116_0538.JPG -rw------- 1 bobo bobo 3876448 Jan 19 12:23 IMG_0674_080116_0542.JPG -rw------- 1 bobo bobo 3866105 Jan 19 12:23 IMG_0675_080116_0543.JPG -rw------- 1 bobo bobo 3881576 Jan 19 12:23 IMG_0676_080116_0543.JPG [bobo@sniffles ~/images]$ mkisofs -J -R -o FMband.iso ToJoe/* 16.05% done, estimate finish Sat Jan 19 12:24:16 2008 32.04% done, estimate finish Sat Jan 19 12:24:16 2008 48.00% done, estimate finish Sat Jan 19 12:24:18 2008 64.04% done, estimate finish Sat Jan 19 12:24:17 2008 80.04% done, estimate finish Sat Jan 19 12:24:17 2008 96.01% done, estimate finish Sat Jan 19 12:24:18 2008 Total translation table size: 0 Total rockridge attributes bytes: 1801 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used d064 31250 extents written (61 MB) [bobo@sniffles ~/images]$ su Password: [root@sniffles /home/bobo/images]# burncd -f /dev/acd0 -s 8 data FMband.iso fixate next writeable LBA 0 writing from file FMband.iso size 62500 KB written this track 62500 KB (100%) total 62500 KB fixating CD, please wait.. [root@sniffles /home/bobo/images]# mount_cd9660 /dev/acd0 /mnt [root@sniffles /home/bobo/images]# ls -l /mnt total 62113 -rw------- 1 bobo bobo 2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG -rw------- 1 bobo bobo 3346787 Jan 19 07:22 IMG_0661_080116_0524.JPG -rw------- 1 bobo bobo 3623969 Jan 19 07:22 IMG_0662_080116_0525.JPG -rw------- 1 bobo bobo 3966310 Jan 19 07:22 IMG_0663_080116_0526.JPG -rw------- 1 bobo bobo 3971338 Jan 19 07:22 IMG_0664_080116_0526.JPG -rw------- 1 bobo bobo 3946837 Jan 19 07:22 IMG_0665_080116_0528.JPG -rw------- 1 bobo bobo 3873753 Jan 19 07:22 IMG_0666_080116_0528.JPG -rw------- 1 bobo bobo 3832501 Jan 19 07:22 IMG_0667_080116_0529.JPG -rw------- 1 bobo bobo 3854064 Jan 19 07:22 IMG_0668_080116_0531.JPG -rw------- 1 bobo bobo 3849156 Jan 19 07:22 IMG_0669_080116_0532.JPG -rw------- 1 bobo bobo 3868314 Jan 19 07:23 IMG_0670_080116_0533.JPG -rw------- 1 bobo bobo 3901654 Jan 19 07:23 IMG_0671_080116_0534.JPG -rw------- 1 bobo bobo 3851665 Jan 19 07:23 IMG_0672_080116_0537.JPG -rw------- 1 bobo bobo 3850832 Jan 19 07:23 IMG_0673_080116_0538.JPG -rw------- 1 bobo bobo 3876448 Jan 19 07:23 IMG_0674_080116_0542.JPG -rw------- 1 bobo bobo 3866105 Jan 19 07:23 IMG_0675_080116_0543.JPG -rw------- 1 bobo bobo 3881576 Jan 19 07:23 IMG_0676_080116_0543.JPG [root@sniffles /home/bobo/images]# date Sat Jan 19 12:27:25 EST 2008