jrnl: adding entries now works!!

This commit is contained in:
Schrottkatze 2024-04-22 21:25:29 +02:00
parent b967f6e90e
commit aaec1f1f78
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
5 changed files with 89 additions and 13 deletions

View file

@ -58,7 +58,11 @@ impl ToMd for Entry<'_> {
fn to_md(&self) -> String {
format!(
"## {}: {}\n\n{}\n\n",
self.timestamp, self.title, self.content
self.timestamp
.fixed_offset()
.to_rfc3339_opts(chrono::SecondsFormat::Secs, false),
self.title,
self.content
)
}
}