We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c338238 + aa6b2ec commit 64b9b2cCopy full SHA for 64b9b2c
src/main/resources/db_scripts/housekeeping/cleanUpRuns.sh
@@ -62,7 +62,7 @@ else
62
obtain_lock_time_response=$(psql -X $connection_url -c "SELECT started_at FROM housekeepinglock;" 2>&1)
63
64
timestamp_string=$(echo "$obtain_lock_time_response" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}')
65
- timestamp_unix=$(date -jf "%Y-%m-%d %H:%M:%S" "$timestamp_string" +%s)
+ timestamp_unix=$(date -d "$timestamp_string" +%s)
66
current_unix=$(date +%s)
67
time_difference=$((current_unix - timestamp_unix))
68
days_difference=$((time_difference / 86400))
0 commit comments