aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index ede2e0825d..7fa7a5e40d 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -52,7 +52,21 @@ setup_widgets (GnomeCalendar *gcal)
task_view = tasks_create (gcal);
{
- day_view = gncal_full_day_new (gcal, time (NULL), time (NULL) + 86400);
+ struct tm tm;
+ time_t a, b;
+
+ tm = *localtime (&now);
+ tm.tm_hour = 0;
+ tm.tm_min = 0;
+ tm.tm_sec = 0;
+
+ a = mktime (&tm);
+
+ tm.tm_mday++;
+
+ b = mktime (&tm);
+
+ day_view = gncal_full_day_new (gcal, a, b);
}
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), day_view, gtk_label_new (_("Day View")));