From a71364b4a1e764bcbc31826bb632c1fa8e06eafb Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 17 Jul 2001 20:07:27 +0000 Subject: Really fixes #4380. The previous fix was necessary but not sufficient; it 2001-07-17 Federico Mena Quintero Really fixes #4380. The previous fix was necessary but not sufficient; it worked for me because my system timezone happens to match the Evolution timezone --- if they don't match, the bug would persist. * cal-util/timeutil.c (time_to_gdate_with_zone): New function. We cannot use g_date_set_time() anymore because it does not take timezones into account. * gui/gnome-cal.c (get_days_shown): Use the function above. * gui/e-day-view.c (e_day_view_find_work_week_start): Likewise. * gui/e-week-view.c (e_week_view_set_selected_time_range): Likewise. 2001-07-17 Jon Trowbridge svn path=/trunk/; revision=11167 --- calendar/gui/gnome-cal.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'calendar/gui/gnome-cal.c') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index cf8d12bc14..7068fbe1fe 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1692,14 +1692,16 @@ get_days_shown (GnomeCalendar *gcal, GDate *start_date, gint *days_shown) switch (priv->current_view_type) { case GNOME_CAL_DAY_VIEW: - g_date_clear (start_date, 1); - g_date_set_time (start_date, E_DAY_VIEW (priv->day_view)->lower); + time_to_gdate_with_zone (start_date, + E_DAY_VIEW (priv->day_view)->lower, + priv->zone); *days_shown = e_day_view_get_days_shown (E_DAY_VIEW (priv->day_view)); break; case GNOME_CAL_WORK_WEEK_VIEW: - g_date_clear (start_date, 1); - g_date_set_time (start_date, E_DAY_VIEW (priv->work_week_view)->lower); + time_to_gdate_with_zone (start_date, + E_DAY_VIEW (priv->work_week_view)->lower, + priv->zone); *days_shown = e_day_view_get_days_shown (E_DAY_VIEW (priv->work_week_view)); break; -- cgit v1.2.3