aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-07-18 04:07:27 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-07-18 04:07:27 +0800
commita71364b4a1e764bcbc31826bb632c1fa8e06eafb (patch)
treeee2b3033cb9bfffe86d44ca7b2b59bcdc013908b /calendar/gui/e-week-view.c
parentde5890b84b581099ab27937f9dd592f4658efdc0 (diff)
downloadgsoc2013-evolution-a71364b4a1e764bcbc31826bb632c1fa8e06eafb.tar.gz
gsoc2013-evolution-a71364b4a1e764bcbc31826bb632c1fa8e06eafb.tar.zst
gsoc2013-evolution-a71364b4a1e764bcbc31826bb632c1fa8e06eafb.zip
Really fixes #4380. The previous fix was necessary but not sufficient; it
2001-07-17 Federico Mena Quintero <federico@ximian.com> 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 <trow@ximian.com> svn path=/trunk/; revision=11167
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 2cf036289f..32af97d1fa 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -1205,9 +1205,11 @@ e_week_view_set_selected_time_range (EWeekView *week_view,
gboolean update_adjustment_value = FALSE;
g_return_if_fail (E_IS_WEEK_VIEW (week_view));
-
+#if 0
g_date_clear (&date, 1);
g_date_set_time (&date, start_time);
+#endif
+ time_to_gdate_with_zone (&date, start_time, week_view->zone);
if (week_view->multi_week_view) {
/* Find the number of days since the start of the month. */
@@ -1271,8 +1273,11 @@ e_week_view_set_selected_time_range (EWeekView *week_view,
week_view->zone))
week_view->selection_end_day = week_view->selection_start_day;
else {
+#if 0
g_date_clear (&end_date, 1);
g_date_set_time (&end_date, end_time - 60);
+#endif
+ time_to_gdate_with_zone (&end_date, end_time - 60, week_view->zone);
week_view->selection_end_day = g_date_julian (&end_date)
- g_date_julian (&base_date);
}