From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 22:50:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2D7A16A41A for ; Sat, 19 Jan 2008 22:50:25 +0000 (UTC) (envelope-from Joerg.Schilling@fokus.fraunhofer.de) Received: from mailgw27.noc.fraunhofer.de (mailgw2-out.fraunhofer.de [153.96.1.17]) by mx1.freebsd.org (Postfix) with ESMTP id 68E0113C448 for ; Sat, 19 Jan 2008 22:50:25 +0000 (UTC) (envelope-from Joerg.Schilling@fokus.fraunhofer.de) Received: from mailgw27.noc.fraunhofer.de (localhost [127.0.0.1]) by mailgw27.noc.fraunhofer.de (8.13.5+/8.13.4) with ESMTP id m0JMXN9a014361; Sat, 19 Jan 2008 23:33:23 +0100 (CET) Received: from pluto.fokus.fraunhofer.de (pluto.fokus.fraunhofer.de [195.37.77.164]) by mailgw27.noc.fraunhofer.de (8.13.5+/8.13.4) with ESMTP id m0JMWsnK012859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 19 Jan 2008 23:33:22 +0100 (CET) Received: from EXCHSRV.fokus.fraunhofer.de (bohr [10.147.9.231]) by pluto.fokus.fraunhofer.de (8.13.7/8.13.7) with SMTP id m0JMMwfE008165; Sat, 19 Jan 2008 23:22:58 +0100 (MET) Received: from rigel ([10.147.65.195]) by EXCHSRV.fokus.fraunhofer.de with Microsoft SMTPSVC(6.0.3790.3959); Sat, 19 Jan 2008 23:22:58 +0100 Date: Sat, 19 Jan 2008 23:22:58 +0100 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: freebsd-questions@freebsd.org, bob89@wb4jcm.org Message-ID: <47927842.9laQQcD/42mYWXA0%Joerg.Schilling@fokus.fraunhofer.de> User-Agent: nail 11.22 3/20/05 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 19 Jan 2008 22:22:58.0446 (UTC) FILETIME=[D8655AE0:01C85AE9] X-Fraunhofer-Email-Policy: accepted Cc: 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: Sat, 19 Jan 2008 22:50:26 -0000 > 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. > The sequence of operations I followed is below. Let me asume you use a _recent_ mkisofs and set up a correct timezone... Then you found a FreeBSD kernel bug in your filesystem code. BTW: The first bug I found in mkisofs (this was in 1995) was a TZ bug and mkisofs did use the wrong sign for the timezone offset. Since this has been fixed, the only reported problems where in effect +- 24 hours from New-year. What do you get from "mkisofs -version"? What timezone do you have (how many hours from GMT and which location)? What do you have in the TZ= variable? What do you see with "TZ=GMT ls -l ToJoe"? Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily