Use -u instead of --utc date flag

This commit is contained in:
Kirill Bulatov 2021-04-26 17:12:07 +03:00
parent eee50b6921
commit c24bdab97e
3 changed files with 3 additions and 3 deletions

View file

@ -261,7 +261,7 @@ jobs:
with: with:
node-version: 12.x 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' if: github.ref == 'refs/heads/release'
- run: echo "TAG=nightly" >> $GITHUB_ENV - run: echo "TAG=nightly" >> $GITHUB_ENV
if: github.ref != 'refs/heads/release' if: github.ref != 'refs/heads/release'

View file

@ -55,7 +55,7 @@ fn commit_hash() -> Option<String> {
} }
fn build_date() -> 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> { fn output_to_string(command: &str) -> Option<String> {

View file

@ -108,7 +108,7 @@ fn run_fuzzer() -> Result<()> {
} }
fn date_iso() -> Result<String> { 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) Ok(res)
} }