From 538af4f9e3d1df4df697d4a9a697c5405426e83f Mon Sep 17 00:00:00 2001 From: Nick Gerace Date: Wed, 31 May 2023 13:53:33 -0400 Subject: [PATCH] reindeer: ensure date is based on universal time Signed-off-by: Nick Gerace --- pkgs/development/tools/reindeer/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/reindeer/update.sh b/pkgs/development/tools/reindeer/update.sh index 8047fb2bbdc0..2a34ede61518 100755 --- a/pkgs/development/tools/reindeer/update.sh +++ b/pkgs/development/tools/reindeer/update.sh @@ -2,7 +2,7 @@ #!nix-shell -I nixpkgs=./. -i bash -p curl jq nix-prefetch common-updater-scripts mktemp nix coreutils # First, check that we only update once per day since the version tag is dependent on the date. -NEW_VERSION="unstable-$(date +%F)" +NEW_VERSION="unstable-$(date -u +%F)" CURRENT_VERSION=$(nix-instantiate --eval -E "with import ./. {}; reindeer.version" | tr -d '"') if [[ "$NEW_VERSION" == "$CURRENT_VERSION" ]]; then echo "skipping reindeer update within same day (version: \"$CURRENT_VERSION\")"