summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 16:32:54 +0000
committerLars Wirzenius <liw@liw.fi>2024-01-13 16:32:54 +0000
commit074f5338137a14907abc77b08db1e873d1ee196a (patch)
tree419246a037a818edf7efddc93a8b5d0d991fafcd /src
parentf5bb5f56946b685ef33d99465e2661f89e70e659 (diff)
parentcadee7a8abf87ecd30d675936ad83b704ce4be3f (diff)
downloadjt2-074f5338137a14907abc77b08db1e873d1ee196a.tar.gz
Merge branch 'subplot-fixes' into 'main'
chore: update Cargo.lock See merge request larswirzenius/jt!40
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))?;