diff --git a/rust/tool/src/generation.rs b/rust/tool/src/generation.rs index bffddef..d5c5b5e 100644 --- a/rust/tool/src/generation.rs +++ b/rust/tool/src/generation.rs @@ -96,7 +96,7 @@ impl fmt::Display for Generation { } fn read_build_time(path: &Path) -> Result { - let build_time = time::OffsetDateTime::from_unix_timestamp(fs::metadata(path)?.mtime())?.date(); + let build_time = time::OffsetDateTime::from_unix_timestamp(fs::symlink_metadata(path)?.mtime())?.date(); Ok(build_time) }