Re: [PATCH] UTC timestamp option for FAT filesystems



Joe Peterson <joe@xxxxxxxxxxx> writes:

Attached is a patch to provide a new mount option ("utc") for DOS
(vfat/msdos) filesystems, allowing timestamps to be in universal
coordinated time (UTC) rather than local time in applications where
doing this is advantageous.

The time zone handling seems racy. e.g. consider the case DST
changes on that day. You convert before the switch over
and suddenly the time offset is different.

I'm actually not sure someone in user space is even updating the kernel
idea of the timezone for DST on a switch (generally it was assumed it's some
obsolete BSD concept and that all real programs only use the
user space glibc implementation that knows all the rules). So
DST might not be supported at all.

Also even if it worked it seems very limited. If you do that why not
have an option to set an arbitary time zone offset?

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: clock, daylight savings time
    ... As long as TZ is set properly, an OS/2 or Unix system will automatically ... localtimedoes not "automatically switch to and from DST." ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: DST change and home auto...
    ... on how the change in the start of DST this year will effect various HA ... working ok after the switch to CDT, this morning switched to 1 hour later than ... On the actual start day of DST, the DVR time messed up, however, I believe that the local PBS station stopped sending time code for a day or 2. ... I hope the internal clock keeps time. ...
    (comp.home.automation)
  • win xp pro sp3, dst, file timestamps also changed
    ... but all file timestamps were changed forward by 1 hour. ... and correctly change all file times back 1 hour - ... now that the DST switch has already occurred? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: OT: Time
    ... There are small electric clocks and wristwatches ... WWV has a signal to indicate DST. ... switch when they're supposed to switch, ...
    (rec.food.cooking)
  • Re: Clock Adjust for HP49G and hp49g+ (50g)
    ... confirmation. ... Switch to DST happens this night in US... ... In US the change will happen timezone by timezone, ...
    (comp.sys.hp48)