Skip to content

Commit

Permalink
just use small time offset
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Apr 27, 2021
1 parent 344ee01 commit cc510c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ if [ "$MODE" == "test" ]; then
# set a random date. ofen tools put time stamps in output files
# for tools undergoing short reviews (<1d) these will produce
# problems with weekly checks that may be avoided by this
rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l | sed 's/\..*$//')
randdate=$(date -d "@$rand" "+%Y%m%d %H:%M")
# rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l | sed 's/\..*$//')
# randdate=$(date -d "@$rand" "+%Y%m%d %H:%M")
randdate=$(date -d "-1 day +1 hour -1 minute" "+%Y%m%d %H:%M")
echo "$randdate"
sudo date -s "$randdate"

Expand Down

0 comments on commit cc510c5

Please sign in to comment.