Skip to content

Commit

Permalink
fixed absolute begin time
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Dec 14, 2021
1 parent 2c55b21 commit 018fc54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ else
waittime=$(( ${BASH_REMATCH[1]} * 60 ))
target_time=$(($current_time + $waittime))
else
today=$(date +"%Y%m%d")
target_time=$(date --date="${today}T${DB_DUMP_BEGIN}" +"%s")
today=$(date +"%Y-%m-%d")
target_time=$(date --date="${today} ${DB_DUMP_BEGIN}" +"%s")

if [[ "$target_time" < "$current_time" ]]; then
target_time=$(($target_time + 24*60*60))
Expand Down

0 comments on commit 018fc54

Please sign in to comment.