Compare commits
1 Commits
2d3e2cb3a9
...
8181cc823e
| Author | SHA1 | Date | |
|---|---|---|---|
|
8181cc823e
|
@@ -152,11 +152,11 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task> {
|
|||||||
*date = NaiveDate::from_ymd_opt(
|
*date = NaiveDate::from_ymd_opt(
|
||||||
date.year(),
|
date.year(),
|
||||||
date.month(),
|
date.month(),
|
||||||
reoccurrence.start_date.day().min(u32::from(
|
reoccurrence.start_date.day().min(
|
||||||
Month::try_from(u8::try_from(date.month()).unwrap())
|
u32::from(Month::try_from(u8::try_from(date.month()).unwrap())
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.length(date.year()),
|
.length(date.year())),
|
||||||
)),
|
),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user