Re: [PATCH] FAT timezones [was Re: updating the RTC automagically]

Peter Samuelson (peter@wire.cadcamlab.org)
Sat, 20 Nov 1999 21:21:10 -0600 (CST)


[Alexander Viro]
> Ouch... Timezone is much nastier than just one offset. First of all,
> you can't use the _current_ offset - you should take offset for the
> moment of file creation.

I know that. But MS-DOS doesn't know that. It puts the current
*local* time right on the platter, and what it reads off the platter it
still interprets as *local* time even if it was created in the "other"
half of the year. Even NT is that stupid -- I checked.

My patch (if I'm not mistaken) allows Linux to match those semantics,
which I agree are quite broken. I don't know any better way to do so,
and I *have* heard from people who want this "feature".

> And if you expect that all timezones behave nicely... How would you
> like the rules a-la "switch in the last Sunday of April and first
> Sunday of October"?

If timezones behaved nicely, there might be a case to be made for
putting them in the kernel. I'm trying to avoid that, as any sensible
person would.

Peter

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