From b93c623212899977f4f45db41ae171c64a42c62f Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 13 Nov 2001 23:35:16 +0000 Subject: initialize the builtin timezones, to ensure that the TZID of the UTC zone 2001-11-13 Damon Chaplin * src/libical/icaltimezone.c (icaltimezone_get_tzid): initialize the builtin timezones, to ensure that the TZID of the UTC zone is set. Hopefully fixes bugs #14941 & #14622. svn path=/trunk/; revision=14689 --- libical/ChangeLog | 6 ++++++ libical/src/libical/icaltimezone.c | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'libical') diff --git a/libical/ChangeLog b/libical/ChangeLog index b00c82defe..1ed7a708b1 100644 --- a/libical/ChangeLog +++ b/libical/ChangeLog @@ -1,3 +1,9 @@ +2001-11-13 Damon Chaplin + + * src/libical/icaltimezone.c (icaltimezone_get_tzid): initialize the + builtin timezones, to ensure that the TZID of the UTC zone is set. + Hopefully fixes bugs #14941 & #14622. + 2001-10-31 Damon Chaplin * src/libical/icalproperty.c (get_next_line_start): use MAX_LINE_LEN diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c index f7d62a3383..f2e33d3596 100644 --- a/libical/src/libical/icaltimezone.c +++ b/libical/src/libical/icaltimezone.c @@ -1120,6 +1120,11 @@ icaltimezone_get_tzid (icaltimezone *zone) if (!zone) return NULL; + /* Initialize the builtin timezones, to ensure that the UTC timezone has + its TZID set. */ + if (!builtin_timezones) + icaltimezone_init_builtin_timezones (); + if (!zone->component) icaltimezone_load_builtin_timezone (zone); -- cgit v1.2.3