|
|
@ -13,7 +13,7 @@ else |
|
|
|
WEEK=`date --date="last monday" +%V` |
|
|
|
WEEK=`date --date="last monday" +%V` |
|
|
|
fi |
|
|
|
fi |
|
|
|
current_week=`date +'%V'` |
|
|
|
current_week=`date +'%V'` |
|
|
|
current_week_diff=$((${current_week}-${WEEK})) |
|
|
|
current_week_diff=$((${current_week}-${WEEK}-1)) |
|
|
|
DATE_WEEK=`date --date="last monday - ${current_week_diff} weeks" +%Y%m%d` |
|
|
|
DATE_WEEK=`date --date="last monday - ${current_week_diff} weeks" +%Y%m%d` |
|
|
|
DATE_START=`date --date="${DATE_WEEK}" +%s` |
|
|
|
DATE_START=`date --date="${DATE_WEEK}" +%s` |
|
|
|
DATE_STOP=$(($DATE_START+7*86400)) |
|
|
|
DATE_STOP=$(($DATE_START+7*86400)) |
|
|
|