diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b50ca9a6f3..d5c93f69b0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -261,7 +261,7 @@ jobs: with: node-version: 12.x - - run: echo "TAG=$(date --iso --utc)" >> $GITHUB_ENV + - run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV if: github.ref == 'refs/heads/release' - run: echo "TAG=nightly" >> $GITHUB_ENV if: github.ref != 'refs/heads/release' diff --git a/crates/rust-analyzer/build.rs b/crates/rust-analyzer/build.rs index 780d247c90..bca6611d60 100644 --- a/crates/rust-analyzer/build.rs +++ b/crates/rust-analyzer/build.rs @@ -55,7 +55,7 @@ fn commit_hash() -> Option { } fn build_date() -> Option { - output_to_string("date --utc +%Y-%m-%d") + output_to_string("date -u +%Y-%m-%d") } fn output_to_string(command: &str) -> Option { diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 01bf6e70de..ce33534108 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -108,7 +108,7 @@ fn run_fuzzer() -> Result<()> { } fn date_iso() -> Result { - let res = cmd!("date --utc +%Y-%m-%d").read()?; + let res = cmd!("date -u +%Y-%m-%d").read()?; Ok(res) }