projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Update ical_dezonify() to use system tzdata
[citadel.git]
/
citadel
/
ical_dezonify.c
diff --git
a/citadel/ical_dezonify.c
b/citadel/ical_dezonify.c
index 0e95bdc71318f3c9a26fe0ad9dbf0e23f168766c..776fe8634a1ff5e73d69539ba8b47d9bd8c1498e 100644
(file)
--- a/
citadel/ical_dezonify.c
+++ b/
citadel/ical_dezonify.c
@@
-88,10
+88,22
@@
void ical_dezonify_backend(icalcomponent *cal,
/* CtdlLogPrintf(9, " * ...and we handle that internally.\n"); */
}
else {
/* CtdlLogPrintf(9, " * ...and we handle that internally.\n"); */
}
else {
+ /* try attached first */
t = icalcomponent_get_timezone(cal, tzid);
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")
(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");
+ }
+*/
+ }
}
}
}
}