aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gnome-cal.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-03 16:05:35 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-03 16:05:35 +0800
commite2fbfd581d4bfc223f50af93fb48667e78f4398d (patch)
tree3c3fb2bf21aac5610b122405d8f355aaa034a884 /calendar/gnome-cal.c
parent45a75ede7ff27645c23cd0b009bf023bea2b6d2f (diff)
downloadgsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar.gz
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar.bz2
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar.lz
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar.xz
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.tar.zst
gsoc2013-evolution-e2fbfd581d4bfc223f50af93fb48667e78f4398d.zip
The "better" format string for strftime() wasn't better, after all :-(
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * view-utils.c (view_utils_draw_events): The "better" format string for strftime() wasn't better, after all :-( ... plus more work on progress svn path=/trunk/; revision=101
Diffstat (limited to 'calendar/gnome-cal.c')
-rw-r--r--calendar/gnome-cal.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c
index ede2e0825d..7fa7a5e40d 100644
--- a/calendar/gnome-cal.c
+++ b/calendar/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")));