mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05: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>
|
Arbyste <arbyste@outlook.com>
|
||||||
Vasll <github.com/vasll>
|
Vasll <github.com/vasll>
|
||||||
laalsaas <laalsaas@systemli.org>
|
laalsaas <laalsaas@systemli.org>
|
||||||
|
ijqq <ijqq@protonmail.ch>
|
||||||
********************
|
********************
|
||||||
|
|
||||||
The text of the 3 clause BSD license follows:
|
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")
|
s => NaiveDate::parse_from_str(s.as_str(), "%Y-%m-%d")
|
||||||
.or_else(|err| invalid_input!(err, "Error parsing date: {s}"))?
|
.or_else(|err| invalid_input!(err, "Error parsing date: {s}"))?
|
||||||
.and_time(NaiveTime::from_hms_milli_opt(0, 0, 0, 0).unwrap())
|
.and_time(NaiveTime::from_hms_milli_opt(0, 0, 0, 0).unwrap())
|
||||||
|
.and_utc()
|
||||||
.timestamp_millis(),
|
.timestamp_millis(),
|
||||||
}
|
}
|
||||||
.into())
|
.into())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue