From 979d1a6fe9b9893dec5215130ef1650eca6ab5be Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Apr 2026 00:09:58 +0800 Subject: [PATCH] automated: use 24 hour time (with C locale date's) hopefully easier since server is using UTC --- automated/build.sh | 8 ++++---- automated/run-lts.sh | 2 +- automated/run-nightly.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/automated/build.sh b/automated/build.sh index 968f65d0..355de363 100755 --- a/automated/build.sh +++ b/automated/build.sh @@ -5,7 +5,7 @@ # SC1091: Secrets are sourced from a file that doesn't exist in the tree. # SC2001: Pattern substitution is too hard to use; don't recommend it. -date +LANG=C date set -eu +x -o pipefail ROOT=$(cd "$(dirname $0)" ; pwd) @@ -169,14 +169,14 @@ docker run $ARGS_UPLOAD $IMAGE curator check-target-available --target $TARGET # # * Upload the docs to S3 # * Upload the new snapshot .yaml file to the appropriate Github repo, also upload its constraints -date +LANG=C date docker run $ARGS_UPLOAD -e "CURATOR_AWS_OPTIONS=--only-show-errors" $IMAGE /bin/bash -c " set -e ulimit -n hard curator upload-docs --target $TARGET ${DOCS_BUCKET:+--bucket $DOCS_BUCKET} curator upload-github --target $TARGET " -date +LANG=C date case $TARGET in lts-22.*) ;; @@ -196,4 +196,4 @@ then fi echo -n "Completed at " -date +LANG=C date diff --git a/automated/run-lts.sh b/automated/run-lts.sh index f043cd60..41ef1e26 100755 --- a/automated/run-lts.sh +++ b/automated/run-lts.sh @@ -10,4 +10,4 @@ fi ln -sf $LOG_FILE lts-build.log time script -c "./build.sh $*" $LOG_FILE touch -h lts-build.log -date +LANG=C date diff --git a/automated/run-nightly.sh b/automated/run-nightly.sh index fd7bf564..1fd7d169 100755 --- a/automated/run-nightly.sh +++ b/automated/run-nightly.sh @@ -17,7 +17,7 @@ while true; do time script -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE touch -h nightly-build.log ${cmd:+exit 0} - echo "$0: run completed at $(date)" + LANG=C echo "$0: run completed at $(LANG=C date)" ${once:+exit 0} echo sleep 90m