mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-11 12:48:47 +00:00
Use -u instead of --utc date flag
This commit is contained in:
parent
eee50b6921
commit
c24bdab97e
3 changed files with 3 additions and 3 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -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'
|
||||
|
|
|
@ -55,7 +55,7 @@ fn commit_hash() -> Option<String> {
|
|||
}
|
||||
|
||||
fn build_date() -> Option<String> {
|
||||
output_to_string("date --utc +%Y-%m-%d")
|
||||
output_to_string("date -u +%Y-%m-%d")
|
||||
}
|
||||
|
||||
fn output_to_string(command: &str) -> Option<String> {
|
||||
|
|
|
@ -108,7 +108,7 @@ fn run_fuzzer() -> Result<()> {
|
|||
}
|
||||
|
||||
fn date_iso() -> Result<String> {
|
||||
let res = cmd!("date --utc +%Y-%m-%d").read()?;
|
||||
let res = cmd!("date -u +%Y-%m-%d").read()?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue