<div dir="ltr">2008/9/15 David Faure <span dir="ltr"><<a href="mailto:dfaure@trolltech.com">dfaure@trolltech.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tuesday 08 April 2008, Karl Chen wrote:<br>
><br>
> Hi, this is a comment about<br>
> <a href="http://www.ramendik.ru/docs/trashspec.html" target="_blank">http://www.ramendik.ru/docs/trashspec.html</a>,<br>
> <a href="http://www.freedesktop.org/wiki/Specifications/trash-spec" target="_blank">http://www.freedesktop.org/wiki/Specifications/trash-spec</a> .<br>
><br>
> The current Trash spec (version 0.7) says:<br>
> * The key "DeletionDate" contains the date and time when the<br>
> file/directory was trashed. The date and time are to be in the<br>
> YYYY-MM-DDThh:mm:ss format (see RFC 3339). The time zone should<br>
> be the user's (or filesystem's) local time.<br>
><br>
> I applaud the choice of YYYY-MM-DDThh:mm:ss over the despicable<br>
> ctime() format.<br>
<br>
:-)<br>
<br>
> One suggestion I have: use UTC and/or specify the timezone.<br>
><br>
> Files may live in the trash can across daylight savings changes.<br>
> A laptop or filesystem's local timezone can change as the user<br>
> moves his laptop or removable media across timezone boundaries.<br>
> Network file systems can be in different timezones from the<br>
> client.<br>
><br>
> I believe that using the local timezone without specifying the<br>
> timezone may cause problems.<br>
<br>
Indeed.<br>
Although this is just for informing the user when he/she's browsing<br>
the trash, this could be a minor source of bugs.<br>
<br>
> In the language of RFC 3339, the current format of the<br>
> DeletionDate field is "4.4. Unqualified Local Time". I propose<br>
> that the format of DeletionDate be changed to "4.2. Local Offsets"<br>
> (e.g. 1996-12-19T16:39:57-08:00) or "4.1. Coordinated Universal<br>
> Time" (e.g. 1996-12-20T00:39:57Z), i.e. standard RFC 3339.<br>
<br>
I agree with this proposal.</blockquote><div><br>I agree, but the specification should specify how to interpret a DeletionDate written as "Unqualified Local Time".<br>At the moment it does not specify if the time should be interpret as user's time or filesystem's time.<br>
<br>I also propose that:<br>- A implementation MUST be able to read trashinfo files also if the DeletionDate is an "Unqualified Local Time".<br>- A implementation COULD NOT write the DeletionDate as "Unqualified Local Time".<br>
<br>I think that supporting only UTC would be simpler to implements than supporting Local Offsets or both.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Alexander, do you?<br>
I don't want to start writing out stuff that would break your implementation :-)<br>
</blockquote></div><br>If a new version of the specification is to be released I suggest to make clearer the fact that (for the volume trash directories) the path are relative to the $topdir and not the parent of the trash directory.<br>
<br>There is not a chance to have a issue tracking system and possibly a source control system for these Spec?<br>-- <br>Andrea Francia<br><a href="http://andreafrancia.blogspot.com/">http://andreafrancia.blogspot.com/</a><br>
</div>