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
This commit is contained in:
Damon Chaplin
2001-10-25 23:27:47 +00:00
committed by Damon Chaplin
parent 62f4997a26
commit 750c920dcd
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,12 @@
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)
2001-10-23 Damon Chaplin <damon@ximian.com> 2001-10-23 Damon Chaplin <damon@ximian.com>
* src/libical/icalrecur.c (icalrecur_two_byrule): use * src/libical/icalrecur.c (icalrecur_two_byrule): use

View File

@ -387,6 +387,11 @@ icaltimezone_get_tznames_from_vtimezone (icalcomponent *component)
ICAL_ANY_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 /* If both standard and daylight TZNAMEs were found, if they are the same
we return just one, else we format them like "EST/EDT". */ we return just one, else we format them like "EST/EDT". */
if (standard_tzname && daylight_tzname) { if (standard_tzname && daylight_tzname) {