undo wrong change to next_date in lifecycle_worker.rs
Some checks failed
ci/woodpecker/push/debug Pipeline failed
ci/woodpecker/pr/debug Pipeline failed

This commit is contained in:
Alex 2024-08-24 19:49:05 +02:00
parent a2a2f25950
commit 6b85263cc9
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -396,6 +396,8 @@ fn next_date(ts: u64) -> NaiveDate {
DateTime::from_timestamp_millis(ts as i64)
.expect("bad timestamp")
.date_naive()
.succ_opt()
.expect("no next day")
}
fn today() -> NaiveDate {