aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-time-item.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-08-01 01:45:41 +0800
committerMilan Crha <mcrha@redhat.com>2009-08-01 01:45:41 +0800
commit8b170a5d61c367d34ebe223c6ebe6f7be031e819 (patch)
treefcfa6db3c2bd2dc7d2081ff926e4cc89c019ecd5 /calendar/gui/e-day-view-time-item.c
parentbb0d4f9224ad30b43fd976a2ff9fab5385e28831 (diff)
downloadgsoc2013-evolution-8b170a5d61c367d34ebe223c6ebe6f7be031e819.tar.gz
gsoc2013-evolution-8b170a5d61c367d34ebe223c6ebe6f7be031e819.tar.zst
gsoc2013-evolution-8b170a5d61c367d34ebe223c6ebe6f7be031e819.zip
Bug #590392 - Show selected day in day view's second timezone column
Diffstat (limited to 'calendar/gui/e-day-view-time-item.c')
-rw-r--r--calendar/gui/e-day-view-time-item.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view-time-item.c b/calendar/gui/e-day-view-time-item.c
index 2c17e4e7d1..7d0b5a6467 100644
--- a/calendar/gui/e-day-view-time-item.c
+++ b/calendar/gui/e-day-view-time-item.c
@@ -134,7 +134,7 @@ e_day_view_time_item_init (EDayViewTimeItem *dvtmitem)
dvtmitem->dragging_selection = FALSE;
dvtmitem->second_zone = NULL;
- last = calendar_config_get_day_second_zone();
+ last = calendar_config_get_day_second_zone ();
if (last) {
if (*last)
@@ -357,14 +357,14 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item,
gint diff;
struct tm mn;
- tt = icaltime_today ();
+ tt = icaltime_from_timet_with_zone (day_view->day_starts[0], 0, cal_zone);
/* diff is number of minutes */
diff = (icaltimezone_get_utc_offset (use_zone, &tt, NULL) -
icaltimezone_get_utc_offset (cal_zone, &tt, NULL)
) / 60;
- tt = icaltime_today ();
+ tt = icaltime_from_timet_with_zone (day_view->day_starts[0], 0, cal_zone);
tt.is_date = FALSE;
icaltime_set_timezone (&tt, cal_zone);
tt = icaltime_convert_to_zone (tt, use_zone);