You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Schroeder, Hartmut" <Ha...@plath.de> on 2010/06/01 08:42:06 UTC

keyword "Id": surprising substitution

hi everybody,
we got a problem with keyword substitution. 
After commit the substition of 'Author', 'Rev' etc is ok, but the Time
in 'Id' is not the same as in 'Date':

 $Date: 2010-06-01 10:34:52 +0200 (Tue, 01 Jun 2010) $ (correct server
time)
 $Id: test_it.xml 4989 2010-06-01 08:34:52Z HSchroeder $

We use svn 1.5.5, Apache 2.0 and a Windows Server.

Any hints?



Regards
Hartmut






Re: keyword "Id": surprising substitution

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 1, 2010, at 03:42, Schroeder, Hartmut wrote:

> we got a problem with keyword substitution. 
> After commit the substition of 'Author', 'Rev' etc is ok, but the Time
> in 'Id' is not the same as in 'Date':
> 
> $Date: 2010-06-01 10:34:52 +0200 (Tue, 01 Jun 2010) $ (correct server
> time)
> $Id: test_it.xml 4989 2010-06-01 08:34:52Z HSchroeder $
> 
> We use svn 1.5.5, Apache 2.0 and a Windows Server.

According to the documentation, this is behaving as intended. $Date$ uses local time while $Id$ uses UTC time. See:

http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html