summaryrefslogtreecommitdiffstats
path: root/src/icalwrap
diff options
context:
space:
mode:
authorNora <nora.widdecke@tu-bs.de>2019-01-23 22:46:15 +0100
committerNora <nora.widdecke@tu-bs.de>2019-01-23 22:46:15 +0100
commit2489ae5fa4bd6bdc540df3c1583602d00215e23f (patch)
treeeae3eb251743bae250e0ced08d6d54f1382a50e1 /src/icalwrap
parent3920975969b7c0d1a129c8bcede3e5a7177c4db0 (diff)
icaltime: fix with_timezone
Diffstat (limited to 'src/icalwrap')
-rw-r--r--src/icalwrap/icaltime.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/icalwrap/icaltime.rs b/src/icalwrap/icaltime.rs
index ba347fa..c618885 100644
--- a/src/icalwrap/icaltime.rs
+++ b/src/icalwrap/icaltime.rs
@@ -80,9 +80,11 @@ impl IcalTime {
pub fn with_timezone(&self, timezone: &IcalTimeZone) -> IcalTime {
let _lock = TZ_MUTEX.lock();
- let time = unsafe {
+ let mut time = unsafe {
ical::icaltime_convert_to_zone(self.time, **timezone)
};
+ //icaltime_convert_to_zone does nothing if is_date == 1
+ time.zone = **timezone;
IcalTime { time }
}