summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-05 12:20:46 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-05 12:20:46 (GMT)
commitcb330910db7affb14ab2410f936623d3111994ce (patch)
treee1f3d74c74b23f9410100b4aca011c696b5e5c8c
parent998f72424dc7c50e6697cf9ccd5d0536a6f684fd (diff)
downloadlibkolabxml-cb330910db7affb14ab2410f936623d3111994ce.tar.gz
check that alarm start date is utc and set error accordingly.
-rw-r--r--src/xcalconversions.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xcalconversions.h b/src/xcalconversions.h
index a4e1b46..b6e9522 100644
--- a/src/xcalconversions.h
+++ b/src/xcalconversions.h
@@ -1211,7 +1211,10 @@ void setAlarms(typename KolabType::components_type& components, const IncidenceT
PropType::trigger_type trigger;
if (alarm.start().isValid()) {
-
+ if (!alarm.start().isUTC()) {
+ ERROR("alarm start date is not UTC but MUST be UTC");
+ continue;
+ }
trigger.date_time(fromDateTime(alarm.start()));
} else {
if (!alarm.relativeStart().isValid()) {