Skip to content

Commit

Permalink
Merge pull request databacker#178 from databacker/date-format-missing
Browse files Browse the repository at this point in the history
ensure format is correct
  • Loading branch information
deitch authored Dec 10, 2021
2 parents fc864ad + 7811235 commit 2c55b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ else
target_time=$(($current_time + $waittime))
else
today=$(date +"%Y%m%d")
target_time=$(date --date="${today}${DB_DUMP_BEGIN}" +"%s")
target_time=$(date --date="${today}T${DB_DUMP_BEGIN}" +"%s")

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

0 comments on commit 2c55b21

Please sign in to comment.