kfogel@collab.net wrote:
>"etienne studer" <etienne.studer@canoo.com> writes:
>
>
>>Using 'svn log' without '--xml' gives me the correct time. Using 'svn log'
>>with '--xml' gives me the GMT time. Does this mean that when using the xml
>>format I have to know how many hours I am off GMT? Or is there another way
>>how to get the local time?
>>
>>Using 'svn log' without the '--xml' option returns
>>'...2003-02-24 17:35:24 +0100...'. -> correct
>>
>>Using 'svn log' with the '--xml' option returns
>>'<date>2003-02-24T16:35:24.120656Z</date>' -> one hour off
>>
>>
>
>I think so -- there's no "--local-time" option.
>
>But, I wonder why we use GMT for one and localtime for the other?...
>
>
My guess would be that the XML format is supposed to be easily
parseable, so it uses the raw timestamp that comes from the repo. "svn
log", on the other hand, munges the timestamp into our human-readable
format, which uses local time by default. And I think the current
behaviour is correct. It is not "you" who must know the UTC offset, it
is whichever program is parsing the XML.
--
Brane Čibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 19 21:16:06 2003