Revert "fix day of the week conversion"
This reverts commit 59a5e84df5
.
This commit is contained in:
parent
b867f9b5b6
commit
e9fa79bd77
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ pub enum DayOfWeek {
|
|||
#[cfg(feature = "chrono")]
|
||||
impl From<chrono::Weekday> for DayOfWeek {
|
||||
fn from(weekday: Weekday) -> Self {
|
||||
day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap()
|
||||
day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue