Author: billa
Date: Tue Jul 17 05:51:00 2007
New Revision: 556910

URL: http://svn.apache.org/viewvc?view=rev&rev=556910
Log:
date -d and locales don't mix: SOLR-136

Modified:
    lucene/solr/trunk/src/scripts/snappuller

Modified: lucene/solr/trunk/src/scripts/snappuller
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/scripts/snappuller?view=diff&rev=556910&r1=556909&r2=556910
==============================================================================
--- lucene/solr/trunk/src/scripts/snappuller (original)
+++ lucene/solr/trunk/src/scripts/snappuller Tue Jul 17 05:51:00 2007
@@ -223,7 +223,7 @@
 ssh -o StrictHostKeyChecking=no ${master_host} mkdir -p ${master_status_dir}
 
 # start new distribution stats
-rsyncStart=`date`
+rsyncStart=`date +'%Y-%m-%d %H:%M:%S'`
 startTimestamp=`date -d "$rsyncStart" +'%Y%m%d-%H%M%S'`
 rsyncStartSec=`date -d "$rsyncStart" +'%s'`
 startStatus="rsync of `basename ${name}` started:$startTimestamp"
@@ -235,7 +235,7 @@
 ${stats} rsync://${master_host}:${rsyncd_port}/solr/${name}/ 
${data_dir}/${name}-wip
 
 rc=$?
-rsyncEnd=`date`
+rsyncEnd=`date +'%Y-%m-%d %H:%M:%S'`
 endTimestamp=`date -d "$rsyncEnd" +'%Y%m%d-%H%M%S'`
 rsyncEndSec=`date -d "$rsyncEnd" +'%s'`
 elapsed=`expr $rsyncEndSec - $rsyncStartSec`


Reply via email to