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

Re: Setting Timezone information in svn:date property

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Fri, 12 Sep 2008 07:22:38 -0400

Daniel Becroft wrote:
> Is there a method of specifying the timezone for the svn:date property,
> or do I need to convert the times to Zulu and then set the value?

All dates in Subversion are rendered as UTC (formerly GMT or Zulu) for universal
consistency. The client will convert local time to UTC when committing (or when
using a date option to -r), but the propset special magic for svn:date does not
do the conversion, only validates that the time string is a valid result (i.e.
must already be UTC).

So, you will need to convert the original commit times to "Zulu" before setting
them. Please also read the red box at the end of this section of the book:

http://svnbook.red-bean.com/nightly/en/svn.tour.revs.specifiers.html#svn.tour.revs.dates

If your original SCM did not preserve strict date order for each subsequent
commit (CVS could do this under certain circumstances), you might have to
reorder the commits (tricky) or simply synthesize a date that preserves the
order. This isn't absolutely /required/, but is a good idea if you ever use -r
with a date range.

HTH

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-12 13:23:05 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.