[evolution] Use the right api to check for system timezone.
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution] Use the right api to check for system timezone.
- Date: Mon, 20 Jul 2009 06:55:16 +0000 (UTC)
commit 1cf9c509c155cb007ec025f3c9f6c23b678df1d4
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Sat Jul 18 18:48:42 2009 +0530
Use the right api to check for system timezone.
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 4625a63..22eaabf 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]