summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 18:25:54 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-13 18:25:54 +0200
commitcadee7a8abf87ecd30d675936ad83b704ce4be3f (patch)
tree419246a037a818edf7efddc93a8b5d0d991fafcd /src
parentd4b56ee125c6e02e32fe0f734f138778ceda7b59 (diff)
downloadjt2-cadee7a8abf87ecd30d675936ad83b704ce4be3f.tar.gz
chore: update dependency versions
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/journal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal.rs b/src/journal.rs
index ee239de..a0d7cda 100644
--- a/src/journal.rs
+++ b/src/journal.rs
@@ -178,7 +178,7 @@ impl Journal {
.map_err(|err| JournalError::CreateDirectory(entries.to_path_buf(), err))?;
}
- let subdir = entries.join(Local::today().format("%Y/%m/%d").to_string());
+ let subdir = entries.join(Local::now().format("%Y/%m/%d").to_string());
std::fs::create_dir_all(&subdir)
.map_err(|err| JournalError::CreateDirectory(entries.to_path_buf(), err))?;