diff --git a/src/pxar/create.rs b/src/pxar/create.rs index c16c8a7f..4e0cfe53 100644 --- a/src/pxar/create.rs +++ b/src/pxar/create.rs @@ -472,7 +472,7 @@ impl<'a, 'b> Archiver<'a, 'b> { let file_size = stat.st_size as u64; if let Some(ref mut catalog) = self.catalog { - catalog.add_file(c_file_name, file_size, metadata.stat.mtime)?; + catalog.add_file(c_file_name, file_size, stat.st_mtime as u64)?; } let offset: LinkOffset =