[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn log: date and time with --xml

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-05-19 21:14:48 CEST

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

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.