Просмотр исходного кода

Fix: September bandwidth statistics were lost every year

Fixes https://github.com/serghey-rodin/vesta/issues/1739

Fixes: https://forum.vestacp.com/viewtopic.php?t=17835
Robert Zollner 6 лет назад
Родитель
Сommit
90792221bd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-update-user-stats

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

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