aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/goto.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-13 22:36:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-13 23:21:00 +0800
commita44eac756d55b0210cc541e1d9b7138805a2133e (patch)
tree69f199d2df4a858466e9f98cd363cc1ebfe9174d /calendar/gui/goto.c
parent311c8dd1226555f81c2eaca738969f5d9e123d1f (diff)
downloadgsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar.gz
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar.bz2
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar.lz
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar.xz
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.tar.zst
gsoc2013-evolution-a44eac756d55b0210cc541e1d9b7138805a2133e.zip
Track the timezone in one place: ECalModel
Diffstat (limited to 'calendar/gui/goto.c')
-rw-r--r--calendar/gui/goto.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c
index dcbe643901..5f3e80f5ae 100644
--- a/calendar/gui/goto.c
+++ b/calendar/gui/goto.c
@@ -94,16 +94,20 @@ ecal_event (ECalendarItem *calitem, gpointer user_data)
#if 0 /* KILL-BONOBO */
GoToDialog *dlg = user_data;
GDate start_date, end_date;
+ ECalModel *model;
struct icaltimetype tt = icaltime_null_time ();
+ icaltimezone *timezone;
time_t et;
+ model = gnome_calendar_get_calendar_model (dlg->gcal);
e_calendar_item_get_selection (calitem, &start_date, &end_date);
+ timezone = e_cal_model_get_timezone (model);
tt.year = g_date_get_year (&start_date);
tt.month = g_date_get_month (&start_date);
tt.day = g_date_get_day (&start_date);
- et = icaltime_as_timet_with_zone (tt, gnome_calendar_get_timezone (dlg->gcal));
+ et = icaltime_as_timet_with_zone (tt, timezone);
gnome_calendar_goto (dlg->gcal, et);