summaryrefslogtreecommitdiff
path: root/src/iter/poslist.rs
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 /src/iter/poslist.rs
parent0bbc006982cb88d53147bfaec9e1f466caaf5043 (diff)
downloadrust_rrule-5394f1c753b2752fc9d6409088f0658c797286d6.zip
timezones
Diffstat (limited to 'src/iter/poslist.rs')
-rw-r--r--src/iter/poslist.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iter/poslist.rs b/src/iter/poslist.rs
index 421d352..fd564d4 100644
--- a/src/iter/poslist.rs
+++ b/src/iter/poslist.rs
@@ -1,4 +1,4 @@
-use crate::datetime::*;
+use crate::datetime::{Time, DTime};
use crate::iter::iterinfo::IterInfo;
use crate::iter::utils::pymod;
use crate::datetime::from_ordinal;
@@ -13,7 +13,7 @@ pub fn build_poslist(
ii: &IterInfo,
dayset: &Vec<Option<isize>>,
tz: &Tz
-) -> Vec<DateTime<Tz>> {
+) -> Vec<DTime> {
let mut poslist = vec![];
for j in 0..bysetpost.len() {
@@ -44,7 +44,7 @@ pub fn build_poslist(
i = &tmp[daypos as usize];
}
- let date = from_ordinal(ii.yearordinal().unwrap() + i);
+ let date = from_ordinal(ii.yearordinal().unwrap() + i, tz);
let res = tz.ymd(date.year(), date.month(), date.day()).and_hms(
timeset[timepos as usize].hour as u32,
timeset[timepos as usize].minute as u32,