feat(note): show full created date format on selected notes

This commit is contained in:
Fernando López Guevara
2025-07-31 18:09:55 -03:00
parent a64ff3b630
commit 26ece3bc05
5 changed files with 51 additions and 16 deletions

View File

@@ -84,9 +84,9 @@ fn time_ago_between(i18n: &mut Localization, timestamp: u64, now: u64) -> String
}
}
pub fn time_format(_i18n: &mut Localization, timestamp: i64) -> String {
pub fn time_format(_i18n: &mut Localization, timestamp: u64) -> String {
// TODO: format this using the selected locale
DateTime::from_timestamp(timestamp, 0)
DateTime::from_timestamp(timestamp as i64, 0)
.unwrap()
.format("%l:%M %p %b %d, %Y")
.to_string()