diff options
author | Damon Chaplin <damon@ximian.com> | 2001-11-14 07:35:16 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-11-14 07:35:16 +0800 |
commit | b93c623212899977f4f45db41ae171c64a42c62f (patch) | |
tree | 868d961f296ff74081a9775c10f852b1312f3d4b /libical/src | |
parent | 77b4c60a69f9ce442e3efffa416045305d9de764 (diff) | |
download | gsoc2013-evolution-b93c623212899977f4f45db41ae171c64a42c62f.tar.gz gsoc2013-evolution-b93c623212899977f4f45db41ae171c64a42c62f.tar.zst gsoc2013-evolution-b93c623212899977f4f45db41ae171c64a42c62f.zip |
initialize the builtin timezones, to ensure that the TZID of the UTC zone
2001-11-13 Damon Chaplin <damon@ximian.com>
* 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
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icaltimezone.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |