Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2008 22:31:46 -0500
From:      Bob Johnson <bob89@bobj.org>
To:        Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de>
Cc:        questions@freebsd.org
Subject:   Re: Wrong times written by mkisofs?
Message-ID:  <200801192231.46700.bob89@bobj.org>
In-Reply-To: <47927842.9laQQcD/42mYWXA0%Joerg.Schilling@fokus.fraunhofer.de>
References:  <47927842.9laQQcD/42mYWXA0%Joerg.Schilling@fokus.fraunhofer.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801192231.46700.bob89>