Răsfoiți Sursa

bugfix for wrong stats calculation

Serghey Rodin 13 ani în urmă
părinte
comite
939e5907d2
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      bin/v-update-user-stats

+ 1 - 1
bin/v-update-user-stats

@@ -68,7 +68,7 @@ TOTAL_U_BACKUPS=0
 for user in $user_list; do 
 for user in $user_list; do 
     USER_DATA=$VESTA/data/users/$user
     USER_DATA=$VESTA/data/users/$user
     source $USER_DATA/user.conf
     source $USER_DATA/user.conf
-    next_month=$(date +'%m/01' -d '+ 1 month')
+    next_month=$(date +'%m/01/%y' -d '+ 1 month')
     DATE=$(date -d "$next_month -1day" +%F)
     DATE=$(date -d "$next_month -1day" +%F)
 
 
     # Compiling report string
     # Compiling report string