$NetBSD: patch-aa,v 1.5 2007/12/01 18:14:02 drochner Exp $

--- applets/clock/calendar-window.c.orig	2007-11-27 01:02:56.000000000 +0100
+++ applets/clock/calendar-window.c
@@ -1098,12 +1098,23 @@ calendar_day_activated (GtkCalendar    *
 	unsigned int  day;
 	unsigned int  month;
 	unsigned int  year;
+	struct tm date;
+	time_t daystart;
 	char         *argument;
 
 	gtk_calendar_get_date (calendar, &year, &month, &day);
-
-	argument = g_strdup_printf ("calendar:///?startdate=%.4d%.2d%.2d",
-				    year, month + 1, day);
+	bzero(&date, sizeof(date));
+	date.tm_mday = day;
+	date.tm_mon = month;
+	date.tm_year = year - 1900;
+	date.tm_isdst = -1;
+	daystart = mktime(&date);
+	gmtime_r(&daystart, &date);
+
+	argument = g_strdup_printf (
+		"calendar:///?startdate=%.4d%.2d%.2dT%.2d%.2d%.2d",
+		date.tm_year + 1900, date.tm_mon + 1, date.tm_mday,
+		date.tm_hour, date.tm_min, date.tm_sec);
 
 	clock_launch_evolution (calwin, argument);
 
