[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: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: Mon, 15 Sep 2008 08:44:53 +1000

> -----Original Message-----
> From: John Peacock [mailto:john.peacock_at_havurah-software.org]
> Sent: Friday, 12 September 2008 9:23 PM
> To: Daniel Becroft
> Cc: users_at_subversion.tigris.org
> Subject: Re: Setting Timezone information in svn:date property
> 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:

Ah, okay, thanks. I will do that.
> http://svnbook.red-bean.com/nightly/en/svn.tour.revs.specifier
> 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.

Yeah, we will be applying the commits with some of them out of date
order, but these will be on separate version branches. We don't have an
immediate need for using the -r option for the log messages, and this is
purely for historical purposes anyway.

Thanks again.
Daniel B.

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-15 00:44:58 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.