Use now() instead of today()

This commit is contained in:
Gwilym Kuiper 2022-11-17 20:30:24 +00:00
parent 3cd482beb8
commit eb01e9206a

View file

@ -151,7 +151,7 @@ fn update_changelog(root_directory: &Path, new_version: &Version) -> Result<Stri
let changelog_content =
std::fs::read_to_string(&changelog_file).map_err(|_| Error::FailedToReadChangelog)?;
let today = chrono::Local::today();
let today = chrono::Local::now();
let formatted_date = format!(
"{:04}/{:02}/{:02}",
today.year(),