Skip to content

Commit

Permalink
change date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Dec 1, 2024
1 parent 35a94c9 commit a4cfa33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/information_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ impl InformationPanel {
if let Some(date) = item.metadata().created {
ui.label("Created: ");
let created: DateTime<Local> = date.into();
ui.label(format!("{}", created.format("%Y-%m-%d %H:%M:%S")));
ui.label(format!("{}", created.format("%d.%m.%Y, %H:%M:%S")));
ui.end_row();
}

if let Some(date) = item.metadata().last_modified {
ui.label("Last Modified: ");
let modified: DateTime<Local> = date.into();
ui.label(format!("{}", modified.format("%Y-%m-%d %H:%M:%S")));
ui.label(format!("{}", modified.format("%d.%m.%Y, %H:%M:%S")));
ui.end_row();
}

Expand Down

0 comments on commit a4cfa33

Please sign in to comment.