aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-26 07:27:47 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-26 07:27:47 +0800
commit750c920dcdce2d34d7f9bce228ff897024808f26 (patch)
tree42e5de13a3fe79de84695c2b99533d4a1fbbdead /libical/src
parent62f4997a269dfa5f1bcdb94d56f96f1387ddf87d (diff)
downloadgsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar.gz
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar.bz2
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar.lz
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar.xz
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.tar.zst
gsoc2013-evolution-750c920dcdce2d34d7f9bce228ff897024808f26.zip
Outlooks (2000) places "Standard Time" and "Daylight Time" in the TZNAME
2001-10-25 Damon Chaplin <damon@ximian.com> * src/libical/icaltimezone.c (icaltimezone_get_tznames_from_vtimezone): Outlooks (2000) places "Standard Time" and "Daylight Time" in the TZNAME strings, which is useless, so return NULL in that case. ETimezoneEntry will then use the TZID instead, in which Outlook does place the actual timezone name. (I just hope Outlook doesn't translate "Standard Time" to other languages, as we won't be able to fix it then) svn path=/trunk/; revision=14107
Diffstat (limited to 'libical/src')
-rw-r--r--libical/src/libical/icaltimezone.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c
index b36e34eb74..9e15fbf993 100644
--- a/libical/src/libical/icaltimezone.c
+++ b/libical/src/libical/icaltimezone.c
@@ -387,6 +387,11 @@ icaltimezone_get_tznames_from_vtimezone (icalcomponent *component)
ICAL_ANY_COMPONENT);
}
+ /* Outlook (2000) places "Standard Time" and "Daylight Time" in the TZNAME
+ strings, which is totally useless. So we return NULL in that case. */
+ if (standard_tzname && !strcmp (standard_tzname, "Standard Time"))
+ return NULL;
+
/* If both standard and daylight TZNAMEs were found, if they are the same
we return just one, else we format them like "EST/EDT". */
if (standard_tzname && daylight_tzname) {