diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2009-07-18 21:18:42 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchenthill@novell.com> | 2009-07-20 14:47:03 +0800 |
commit | 1cf9c509c155cb007ec025f3c9f6c23b678df1d4 (patch) | |
tree | 5274066b150dbbb9a1b60a3d1754bf0670798116 /widgets/e-timezone-dialog | |
parent | d1dc98fa6b52680234f7bbfc52bca9c858cf2568 (diff) | |
download | gsoc2013-evolution-1cf9c509c155cb007ec025f3c9f6c23b678df1d4.tar.gz gsoc2013-evolution-1cf9c509c155cb007ec025f3c9f6c23b678df1d4.tar.zst gsoc2013-evolution-1cf9c509c155cb007ec025f3c9f6c23b678df1d4.zip |
Use the right api to check for system timezone.
Diffstat (limited to 'widgets/e-timezone-dialog')
-rw-r--r-- | widgets/e-timezone-dialog/e-timezone-dialog.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/widgets/e-timezone-dialog/e-timezone-dialog.c b/widgets/e-timezone-dialog/e-timezone-dialog.c index 4625a63e1c..22eaabfc3a 100644 --- a/widgets/e-timezone-dialog/e-timezone-dialog.c +++ b/widgets/e-timezone-dialog/e-timezone-dialog.c @@ -30,6 +30,7 @@ #include <glade/glade.h> #include <misc/e-map.h> #include <libecal/e-cal-time-util.h> +#include <libecal/e-cal-system-timezone.h> #include "e-util/e-util-private.h" @@ -342,9 +343,15 @@ static icaltimezone* get_local_timezone(void) { icaltimezone *zone; + gchar *location; tzset(); - zone = icaltimezone_get_builtin_timezone_from_offset (-timezone, tzname[0]); + location = e_cal_system_timezone_get_location (); + + if (location) + zone = icaltimezone_get_builtin_timezone (location); + + g_free (location); return zone; } |