From f85c0fee764d2f2b38df23cfcb4f01001c0e3dfd Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 30 Sep 2026 19:32:02 +0800 Subject: [PATCH] fix(mobile): number TestFlight builds in UTC (#1050) A laptop in UTC+8 numbered its builds eight hours ahead of CI, so a CI upload of the same version within eight hours of a local one came out lower and would be refused. --- mobile/scripts/testflight.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/scripts/testflight.sh b/mobile/scripts/testflight.sh index 58bad110..98dd48bd 100755 --- a/mobile/scripts/testflight.sh +++ b/mobile/scripts/testflight.sh @@ -19,13 +19,13 @@ # # The default build number is the time — year, day of the year, hour, minute — # so each upload is higher than the last without keeping a counter, and it -# stays under 2^31. +# stays under 2^31. In UTC, so a laptop and CI agree on the order. set -euo pipefail cd "$(dirname "$0")/.." UPLOAD=1 -N=$(date +%y%j%H%M) +N=$(date -u +%y%j%H%M) while [ $# -gt 0 ]; do case "$1" in --no-upload) UPLOAD=0 ;;