Re: PROBLEM: dos filesystem timestamps and daylight savings time

From: Chris Wedgwood (cw@f00f.org)
Date: Wed Oct 30 2002 - 11:34:25 EST


On Tue, Oct 29, 2002 at 08:08:20PM -0500, Kenneth M. Howlett wrote:

> I think the timestamps of a dos filesystem are stored in local
> time.

Yes, I beleive it does.

> So the dos filesystem driver needs to convert the local time to unix
> standard time, and then ls converts back to local time, and displays
> the timestamp in local time.

Nope.... that's a disgusting ugly hack that won't work (consider that
there are two 2:00am for example in a given time zone, one DST and one
without, does DOS store a bit to say which is which in ambiguous
cases?)

If anything, the FS should know about a tz-offset and just simply add
that to the timestamps before passing the data up to the VFS...

<pause>

Checking the code, it uses sys_tz to do exactly this...

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



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:47 EST