Subject: Re: kern/22717: Explicit time zone handling for MS-DOS file systems
To: David Laight <david@l8s.co.uk>
From: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 09/08/2003 13:25:31
David Laight wrote:
> > The patch below adds a '-t' option to mount_msdos, to set the time
> > zone offset (in seconds) from UTC. If not set, the user's current time
> > zone is used. (Maybe a larger unit of time (minutes) should be used,
> > but seconds is most generic, and can also be used by a perfectionist
> > to adjust for, e.g., a camera that doesn't keep perfect time. :-))
> 
> I would let the time be specified as 4, 4h, 4h45, 4h45m, 4h45m30, 4h45m30s
> allowing values >60 for minutes and seconds and defaulting to hours.

Feel free to add a time parser! :-)

> Summertime is also a problem - the UTC time generated will be converted
> using the standard timezone rules - so in summer files created in winter
> will have the wrong time (and v.v.).

That's an inherent problem with keeping time stamps in local time; to
do it "right", we would need a full time zone rule engine in the
kernel, which probably is a bit too much bloat...

/Micke