Skip to content

Commit bfd7b48

Browse files
committed
[Fix] invalid April user stats
Issue influenced by DST change in march Reference: https://www.gnu.org/software/coreutils/manual/html_node/Relative-items-in-date-strings.html Relates to hestiacp@9079222 Fixes hestiacp#755
1 parent 3d76827 commit bfd7b48

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 "$(date +%Y-%m-%d) 1 month")
76+
next_month=$(date +'%m/01/%y' -d "$(date +%Y-%m-15) 1 month")
7777
DATE=$(date -d "$next_month -1day" +%F)
7878

7979
# Compiling report string

0 commit comments

Comments
 (0)