Merge branch 'main' of https://github.com/aidant/embassy into rtc

This commit is contained in:
xoviat
2023-08-27 15:23:25 -05:00
2 changed files with 15 additions and 6 deletions

View File

@ -89,7 +89,7 @@ pub enum DayOfWeek {
#[cfg(feature = "chrono")]
impl From<chrono::Weekday> for DayOfWeek {
fn from(weekday: Weekday) -> Self {
day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap()
day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap()
}
}