summaryrefslogtreecommitdiff
path: root/tests/rrule.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-19 17:24:58 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-19 17:24:58 +0200
commitf534bf215960933fb54be42a534aeb4ebdd59606 (patch)
tree1f7abd8b5c154ecf0c0c485ae2d5dd868f9b9629 /tests/rrule.rs
parentaa5cf33bb89213d744089015c95b0da6bf0f59b3 (diff)
downloadrust_rrule-f534bf215960933fb54be42a534aeb4ebdd59606.zip
maybe progress
Diffstat (limited to 'tests/rrule.rs')
-rw-r--r--tests/rrule.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/rrule.rs b/tests/rrule.rs
index 1028255..3a768a8 100644
--- a/tests/rrule.rs
+++ b/tests/rrule.rs
@@ -1,7 +1,9 @@
extern crate chrono;
+extern crate chrono_tz;
extern crate rrule;
use chrono::prelude::*;
+use chrono_tz::UTC;
use rrule::iter::*;
use rrule::options::*;
@@ -23,9 +25,9 @@ mod test {
fn test_recurring(options: &mut ParsedOptions, expected_dates: &Vec<DateTime<Utc>>) {
let iter_args = IterArgs {
inc: true,
- before: Utc::now(),
- after: Utc::now(),
- dt: Utc::now(),
+ before: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0),
+ after: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0),
+ dt: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0),
_value: Some(vec![]),
};
let mut iter_res = IterResult::new(QueryMethodTypes::ALL, iter_args);