mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Replace deprecated method chrono::NaiveDateTime::timestamp_millis
(#3097)
* Replace deprecated method `chrono::NaiveDateTime::timestamp_millis` * Update CONTRIBUTORS
This commit is contained in:
parent
58ce29f461
commit
22559929f9
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue