diff options
author | Aleksey Kladov <[email protected]> | 2021-04-26 13:20:15 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-26 13:20:15 +0100 |
commit | 4f9640ff39f95231f7d265c2c25a05c3f687b6a3 (patch) | |
tree | 1cae58ae26f5f0d4e8b2fc260edf8222b1a1c1cb /crates | |
parent | 869ec5f97ace736fdbf765d143c9634fd1b558ef (diff) |
fix: add date to the version string on Mac
It doesn't support `--iso`
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/build.rs b/crates/rust-analyzer/build.rs index 25627c7e9..780d247c9 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 --iso --utc") | 58 | output_to_string("date --utc +%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> { |