aboutsummaryrefslogtreecommitdiff
path: root/mling/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mling/build.rs')
-rw-r--r--mling/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mling/build.rs b/mling/build.rs
index cec5b14..5e210eb 100644
--- a/mling/build.rs
+++ b/mling/build.rs
@@ -29,7 +29,7 @@ fn build_version_info() {
// Get date from git commit, fallback to current date
let date = Command::new("git")
- .args(["log", "-1", "--format=%ad", "--date=format:%Y-%-m-%-d"])
+ .args(["log", "-1", "--format=%ad", "--date=format:%Y-%m-%d"])
.output()
.ok()
.and_then(|output| {
@@ -40,7 +40,7 @@ fn build_version_info() {
}
})
.map(|s| s.trim().to_string())
- .unwrap_or_else(|| chrono::Local::now().format("%Y-%-m-%-d").to_string());
+ .unwrap_or_else(|| chrono::Local::now().format("%Y-%m-%d").to_string());
let version_string = format!("mling {version} ({commit_hash} {date})");