Add space between datetime and filename for listings

This commit is contained in:
Nathan Fisher 2024-01-01 19:08:13 -05:00
parent fb49922662
commit 1036e90238
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ impl fmt::Display for Listing {
},
)?;
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
Some(dt) => write!(f, "{dt}")?,
Some(dt) => write!(f, "{dt} ")?,
_ => write!(f, "{:>19} ", self.mtime)?,
}
match self.kind {
@ -324,7 +324,7 @@ impl Listing {
},
);
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
Some(dt) => print!("{dt}"),
Some(dt) => print!("{dt} "),
_ => print!("{:>19} ", self.mtime),
}
let mut stdout = StandardStream::stdout(ColorChoice::Auto);