[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: time zone and UTC issue [rant]



Ralf Mardorf <ralf.mardorf@rocketmail.com> writes:

> If I save BIOS settings as a file and the hwclock is set to UTC, the
> files don't get the German time. The BIOS is the BIOS, it's neither
> Windows, I don't use Windows, but nor the BIOS is Linux, so Linux can't
> "translate" UTC to local time, when I save BIOS settings.

The problem is that you store to a file system that is broken the same
way as the hardware clock, i.e. the MSDOS or VFAT file system that has
no way to indicate what timezone the file time stamps should be
interpreted in.

If you access the vfat file system on your floppy/USB stick using
mtools, you can run the mtools commands in the appropriate TZ
environment.  mcopy -m from vfat to linux file system
(ext2/3/4,xfs,btrfs,...) will create the destination file with the
correct POSIX time stamp.


urs


Reply to: