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

Setting Timezone information in svn:date property

From: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: Fri, 12 Sep 2008 15:04:01 +1000

We are currently converting our old in-house SCM system to an SVN
repository (both client and server running v1.5.2).
After loading the revisions, I am trying to modify the svn:date property
to the original modification date. However, it seems that I am unable to
specify the timezone information in the property?
For example, I can correctly the set the svn:date property with the
    svn propset --revprop --revision 3 svn:date \
        2004-05-06T13:14:15.000000Z svn://localhost/repository
    property 'svn:date' set on repository revision 3
However, if I attempt to specify a timezone other than 'Z', I get:
    svn: Wrong or unexpected property value
    svn: Bogus date
I have tried the following formats (both quoted and unquoted):
.... etc. but they all result in the above error(s).
I searched the archives, and found a link to the following document
(http://www.w3.org/TR/NOTE-datetime), and as far as I can tell, the
above strings should all be valid ISO8601 format.
The default svn:date property value seems to be stored as Zulu, rather
than with the current timezone.
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?
Daniel B.
Received on 2008-09-12 07:03:40 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.