Skip to content

Commit 9079222

Browse files
committed
Fix: September bandwidth statistics were lost every year
Fixes outroll/vesta#1739 Fixes: https://forum.vestacp.com/viewtopic.php?t=17835
1 parent 1daff7c commit 9079222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-update-user-stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for user in $user_list; do
7373
fi
7474
USER_DATA=$HESTIA/data/users/$user
7575
source $USER_DATA/user.conf
76-
next_month=$(date +'%m/01/%y' -d '+ 1 month')
76+
next_month=$(date +'%m/01/%y' -d "$(date +%Y-%m-%d) 1 month")
7777
DATE=$(date -d "$next_month -1day" +%F)
7878

7979
# Compiling report string

0 commit comments

Comments
 (0)