From b090003f8bc69b8b79cadc2d1bed639f257531cb Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 19 Aug 2002 18:11:40 +0000 Subject: make sure to get the date in the current zone, not at UTC 002-08-20 JP Rosevear * gui/comp-editor-factory.c (get_default_event): make sure to get the date in the current zone, not at UTC svn path=/trunk/; revision=17802 --- calendar/gui/comp-editor-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index cd7578faf3..b3c0c9edb1 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -315,7 +315,7 @@ get_default_event (gboolean all_day) zone = icaltimezone_get_builtin_timezone (location); if (all_day) { - itt = icaltime_today (); + itt = icaltime_from_timet_with_zone (time (NULL), 1, zone); dt.value = &itt; dt.tzid = icaltimezone_get_tzid (zone); -- cgit v1.2.3