Java only parses to micro secs so string had to be truncated. It also
does not recognize Z as a timezone, so I specified UTC. It is
currently hard coded to that, which I think will be correct, if not
ideal.
Sent from my iPhone
On May 24, 2008, at 9:35 PM, Branko Čibej <brane_at_xbc.nu> wrote:
> Mark Phippard wrote:
>> Are Subversion dates always in UTC? That is what I think the
>> problem is.
>>
>
> We do put the timezone in the props, don't we:
>
> $ svn pg --revprop svn:date -rHEAD https://svn.collab.net/repos/svn/trunk
> 2008-05-25T00:03:02.098312Z
>
> That 'Z' at the end there is very relevant indeed, it indicates
> timezone "Zulu" a.k.a. UTC. If the timestamp parsing code doesn't
> take the timezone tag into account and correctly adjust the time for
> it, then it is, to put it mildly, broken.
>
> -- Brane
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-25 03:43:25 CEST