[Scodoc-devel] [SVN] Scolar : [1406] backup_rotation uses UTC

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Sam 1 Nov 01:26:51 CET 2014


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20141101/c241bc42/attachment.html>
-------------- section suivante --------------
Modified: branches/ScoDoc7/misc/backup_rotation.sh
===================================================================
--- branches/ScoDoc7/misc/backup_rotation.sh	2014-10-27 02:10:03 UTC (rev 1405)
+++ branches/ScoDoc7/misc/backup_rotation.sh	2014-11-01 00:26:51 UTC (rev 1406)
@@ -23,13 +23,13 @@
 source="incoming"
 
 # Destination file names
-date_daily=$(date +"%Y-%m-%d")
-date_hourly=$(date +"%Y-%m-%dT%H:%M")
+date_daily=$(date -u +"%Y-%m-%d")
+date_hourly=$(date -u +"%Y-%m-%dT%H:%M")
 
 # Get current month and week day number
-month_day=$(date +"%d")
-week_day=$(date +"%u")
-hour=$(date +"%H")
+month_day=$(date -u +"%d")
+week_day=$(date -u +"%u")
+hour=$(date -u +"%H")
 
 # Optional check if source files exist. Email if failed.
 #if [ ! -f $source/archive.tgz ]; then


Plus d'informations sur la liste de diffusion Scodoc-devel