DisEntry: use custom formatting for DateTime in Display

This commit is contained in:
Moritz Gmeiner 2025-07-26 16:47:12 +02:00
commit 1bfd7d3ba5

View file

@ -76,10 +76,11 @@ impl Display for RegularDirEntry {
write!(
f,
"DirEntry {{ {: <16} created: {} modified: {} }}",
"DirEntry {{ {} {: <16} created: {} modified: {} }}",
self.attr,
name,
self.create_time(),
self.write_time()
self.create_time().format("%a %b %d %H:%M:%S%.3f %Y"),
self.write_time().format("%a %b %d %H:%M:%S%.3f %Y")
)?;
Ok(())