Replace deprecated method chrono::NaiveDateTime::timestamp_millis (#3097)

* Replace deprecated method `chrono::NaiveDateTime::timestamp_millis`

* Update CONTRIBUTORS
This commit is contained in:
ijqq 2024-03-28 08:30:02 +00:00 committed by GitHub
parent 58ce29f461
commit 22559929f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -167,6 +167,7 @@ Foxy_null <https://github.com/Foxy-null>
Arbyste <arbyste@outlook.com>
Vasll <github.com/vasll>
laalsaas <laalsaas@systemli.org>
ijqq <ijqq@protonmail.ch>
********************
The text of the 3 clause BSD license follows:

View file

@ -36,6 +36,7 @@ fn ignore_revlogs_before_date_to_ms(
s => NaiveDate::parse_from_str(s.as_str(), "%Y-%m-%d")
.or_else(|err| invalid_input!(err, "Error parsing date: {s}"))?
.and_time(NaiveTime::from_hms_milli_opt(0, 0, 0, 0).unwrap())
.and_utc()
.timestamp_millis(),
}
.into())