Setting Date format for autoprop 'DATE' in SVN -


i have files use autoproperty $date of svn.

when colleagues in france checkout of repository, date in french. when verification of checksum, these files ko because of difference of format date.

note: using windows , our client of choice tortoisesvn open use command line clients.

question 1: there way force format date during checkout?

we tried following:

  • setting "english" in tortoise svn
  • setting environment variable lang en_us , doing checkout both tortoisesvn , svn commandline

none of these solutions working.

question 2: time zone impact date in header well?

thanks


nb: header of our source code, matters.

/*==============================================================================================  *  filename          : source.h  *  version           : $revision: 85911 $  *  modification date : $date: 2015-06-12 18:26:22 +0800 (fri, 12 jun 2015) $  *============================================================================================*/ 

a1: don't know, how manipulate locale-setting in windows in easy , automated style - inspired this old answer in subversion maillist - (better ask su) , can suggest dirty hack: import reg-files fr , en locales before , after checkout (how prepare: switch fr in control panel, save current control set part of registry, return en, save ccs again, leave in .reg mutable part), checkout in bat-file (change locale around checkout)

a2: sad, yes

$date: 2015-06-19 19:45:22 +0500 (Пт, 19 июн 2015) $ 

inserts not language-specific date (trailing part), tz of client

1.8.*-specific solution: can create , use replacement $date keyword, use utc-time instead of local (as $id time-part now) %d variable it

>svn pl -v file.txt properties on 'file.txt':   svn:keywords     author date id revision url header intdate=%d 

and intdate expand location-independent

$intdate: 2015-06-19 14:45:22z $ 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -