diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-13 16:32:54 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-13 16:32:54 +0000 |
commit | 074f5338137a14907abc77b08db1e873d1ee196a (patch) | |
tree | 419246a037a818edf7efddc93a8b5d0d991fafcd /src | |
parent | f5bb5f56946b685ef33d99465e2661f89e70e659 (diff) | |
parent | cadee7a8abf87ecd30d675936ad83b704ce4be3f (diff) | |
download | jt2-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.rs | 2 |
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))?; |