summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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))?;