diff options
-rw-r--r-- | src/rrule_iter.rs | 3 | ||||
-rw-r--r-- | tests/rrule.rs | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/rrule_iter.rs b/src/rrule_iter.rs index cd21b65..7ec0275 100644 --- a/src/rrule_iter.rs +++ b/src/rrule_iter.rs @@ -93,8 +93,7 @@ impl RRuleIter { let year_ordinal = self.ii.yearordinal().unwrap(); // Ordinal conversion uses UTC: if we apply local-TZ here, then // just below we'll end up double-applying. - let date = - from_ordinal(year_ordinal + current_day, &UTC); + let date = from_ordinal(year_ordinal + current_day, &UTC); // We apply the local-TZ here, let date = options.tzid.ymd(date.year(), date.month(), date.day()); for k in 0..self.timeset.len() { diff --git a/tests/rrule.rs b/tests/rrule.rs index a7b60cb..64cac9c 100644 --- a/tests/rrule.rs +++ b/tests/rrule.rs @@ -9,8 +9,8 @@ use rrule::{Frequenzy, ParsedOptions, RRule}; #[cfg(test)] mod test { use super::*; - use rrule::Options; use chrono::Weekday::Sat; + use rrule::Options; fn ymd_hms( year: i32, @@ -6880,9 +6880,9 @@ mod test { ); } - use chrono_tz::Europe::Berlin; use chrono_tz::America::Los_Angeles; use chrono_tz::America::New_York; + use chrono_tz::Europe::Berlin; #[test] fn test_timezones_weekly() { |