summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-26 20:21:57 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-26 20:21:57 +0100
commit5394f1c753b2752fc9d6409088f0658c797286d6 (patch)
treeedef5c6a8700b8afd579fe31163614f1ec948395 /tests
parent0bbc006982cb88d53147bfaec9e1f466caaf5043 (diff)
downloadrust_rrule-5394f1c753b2752fc9d6409088f0658c797286d6.zip
timezones
Diffstat (limited to 'tests')
-rw-r--r--tests/rrule.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rrule.rs b/tests/rrule.rs
index fe8a814..38a76e2 100644
--- a/tests/rrule.rs
+++ b/tests/rrule.rs
@@ -3,7 +3,7 @@ extern crate chrono_tz;
extern crate rrule;
use chrono::prelude::*;
-use chrono_tz::UTC;
+use chrono_tz::{UTC, Tz};
use rrule::{RRule, ParsedOptions, Frequenzy};
#[cfg(test)]
@@ -17,11 +17,11 @@ mod test {
hour: u32,
minute: u32,
second: u32,
- ) -> DateTime<Utc> {
- Utc.ymd(year, month, day).and_hms(hour, minute, second)
+ ) -> DateTime<Tz> {
+ UTC.ymd(year, month, day).and_hms(hour, minute, second)
}
- fn test_recurring(options: ParsedOptions, expected_dates: &Vec<DateTime<Utc>>) {
+ fn test_recurring(options: ParsedOptions, expected_dates: &Vec<DateTime<Tz>>) {
let mut rrule = RRule::new(options);
let res = rrule.all();