From 9ff176775846ee6c5a665b94c1b160648a8083af Mon Sep 17 00:00:00 2001 From: gvdr Date: Fri, 15 Nov 2024 09:07:03 +1100 Subject: [PATCH] fixed shorter date format --- preprocess/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocess/src/main.rs b/preprocess/src/main.rs index 76316de..c32aab4 100644 --- a/preprocess/src/main.rs +++ b/preprocess/src/main.rs @@ -219,7 +219,7 @@ fn extract_tags(doc: &Yaml) -> Option> { fn get_last_commit_date(repo_root: &Path, file_path: &Path) -> Option { let relative_path = file_path.strip_prefix(repo_root).ok()?; let output = Command::new("git") - .args(&["log", "-1", "--date=iso", "--format=%cd", "--", &relative_path.to_string_lossy()]) + .args(&["log", "-1", "--format=%cs", "--", &relative_path.to_string_lossy()]) .current_dir(repo_root) .output() .ok()?;