/*
- * $Id$
- *
* Function to go through an ical component set and convert all non-UTC
* date/time properties to UTC. It also strips out any VTIMEZONE
* subcomponents afterwards, because they're irrelevant.
- *
*/
#include <stdio.h>
#include <string.h>
#include <strings.h>
-#include <ical.h>
+#include <libical/ical.h>
#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "config.h"
#include "ical_dezonify.h"
+#include "ctdl_module.h"
+
/*
* Figure out which time zone needs to be used for timestamps that are
/* CtdlLogPrintf(9, " * ...and we handle that internally.\n"); */
}
else {
+ /* try attached first */
t = icalcomponent_get_timezone(cal, tzid);
- /* CtdlLogPrintf(9, " * ...and I %s have tzdata for that zone.\n",
+/*
+ lprintf(9, " * ...and I %s have tzdata for that zone.\n",
(t ? "DO" : "DO NOT")
- ); */
+ );
+*/
+ /* then try built-in timezones */
+ if (!t) {
+ t = icaltimezone_get_builtin_timezone(tzid);
+/*
+ if (t) {
+ lprintf(9, " * Using system tzdata!\n");
+ }
+*/
+ }
}
}