diff options
author | Kirill Bulatov <[email protected]> | 2021-04-26 15:12:07 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-04-26 15:12:13 +0100 |
commit | c24bdab97e53943fd36cf4e63047785b9c08077b (patch) | |
tree | 485371c10449f0da91f2170a9ae904cca678f60d | |
parent | eee50b6921662dee766c987e1a0b15b371e141d1 (diff) |
Use -u instead of --utc date flag
-rw-r--r-- | .github/workflows/release.yaml | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/build.rs | 2 | ||||
-rw-r--r-- | xtask/src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b50ca9a6f..d5c93f69b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml | |||
@@ -261,7 +261,7 @@ jobs: | |||
261 | with: | 261 | with: |
262 | node-version: 12.x | 262 | node-version: 12.x |
263 | 263 | ||
264 | - run: echo "TAG=$(date --iso --utc)" >> $GITHUB_ENV | 264 | - run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV |
265 | if: github.ref == 'refs/heads/release' | 265 | if: github.ref == 'refs/heads/release' |
266 | - run: echo "TAG=nightly" >> $GITHUB_ENV | 266 | - run: echo "TAG=nightly" >> $GITHUB_ENV |
267 | if: github.ref != 'refs/heads/release' | 267 | if: github.ref != 'refs/heads/release' |
diff --git a/crates/rust-analyzer/build.rs b/crates/rust-analyzer/build.rs index 780d247c9..bca6611d6 100644 --- a/crates/rust-analyzer/build.rs +++ b/crates/rust-analyzer/build.rs | |||
@@ -55,7 +55,7 @@ fn commit_hash() -> Option<String> { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | fn build_date() -> Option<String> { | 57 | fn build_date() -> Option<String> { |
58 | output_to_string("date --utc +%Y-%m-%d") | 58 | output_to_string("date -u +%Y-%m-%d") |
59 | } | 59 | } |
60 | 60 | ||
61 | fn output_to_string(command: &str) -> Option<String> { | 61 | fn output_to_string(command: &str) -> Option<String> { |
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 01bf6e70d..ce3353410 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -108,7 +108,7 @@ fn run_fuzzer() -> Result<()> { | |||
108 | } | 108 | } |
109 | 109 | ||
110 | fn date_iso() -> Result<String> { | 110 | fn date_iso() -> Result<String> { |
111 | let res = cmd!("date --utc +%Y-%m-%d").read()?; | 111 | let res = cmd!("date -u +%Y-%m-%d").read()?; |
112 | Ok(res) | 112 | Ok(res) |
113 | } | 113 | } |
114 | 114 | ||