RE: timestamp preservation design (issue 1256)
From: Jeff Cave <jeff.cave_at_sunergon.com>
Date: 2003-06-19 18:47:11 CEST
> From: Jack Repenning
I don't know for sure (I don't even know where to find this out), but what time zone does the FS keep the timestamp in? If it keeps the timestamp in UTC, then there is no problem (or at least not as big a problem). On the other hand, if the FS maintains the timestamp based on local time, then there is a problem when developers are working in different time zones.
> if you version output files, they can look
Instead of storing the timestamp, why not store an offset: The youngest file in the WC gets an offset of 0. Each file then gets a time offset that represents the time difference between the youngest file. This offset is what then gets stored.
When it someone does a checkout, the local current time is chosen and all files get the timestamp "currentTime - offset". This would resolve the generate issue.
Since I don't know much about timestamps, I did a quick google search. This is a link to a little utility that addresses the problem (with a brief description of the problem):
http://www.codeproject.com/file/TimeStamp.asp
This is a windows utility. Don't know anything about other FS's.
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.