fix: info date format

This commit is contained in:
2023-02-12 18:45:52 +08:00
parent 4c27b577d5
commit e8b782db06

View File

@@ -20,7 +20,7 @@ pub fn info(path: PathBuf) -> XResult<()> {
header("Enc file summary"), meta.version, meta.user_agent)
);
let fmt = simpledateformat::fmt("EEE MMM dd HH:MM:ss z yyyy").unwrap();
let fmt = simpledateformat::fmt("EEE MMM dd HH:mm:ss z yyyy").unwrap();
infos.push(format!("{}: {}", header("Last modified"), fmt.format_local(from_unix_epoch(meta.file_last_modified))));
infos.push(format!("{}: {}", header("Enc file created"), fmt.format_local(from_unix_epoch(meta.created))));