diff options
| -rw-r--r-- | embassy-stm32/src/rtc/datetime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/datetime.rs b/embassy-stm32/src/rtc/datetime.rs index f3428108c..f4e86dd87 100644 --- a/embassy-stm32/src/rtc/datetime.rs +++ b/embassy-stm32/src/rtc/datetime.rs | |||
| @@ -211,7 +211,7 @@ pub enum DayOfWeek { | |||
| 211 | #[cfg(feature = "chrono")] | 211 | #[cfg(feature = "chrono")] |
| 212 | impl From<chrono::Weekday> for DayOfWeek { | 212 | impl From<chrono::Weekday> for DayOfWeek { |
| 213 | fn from(weekday: Weekday) -> Self { | 213 | fn from(weekday: Weekday) -> Self { |
| 214 | day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap() | 214 | day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap() |
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||
