aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-08-20 02:11:40 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-08-20 02:11:40 +0800
commitb090003f8bc69b8b79cadc2d1bed639f257531cb (patch)
treead7698e416f72575b7c13e78d3c984f99bf60f07 /calendar
parentad18d0ebe8bbe4c2b51d0f533429d9f9db1d2f57 (diff)
downloadgsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.gz
gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.zst
gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.zip
make sure to get the date in the current zone, not at UTC
002-08-20 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/comp-editor-factory.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index f0dc8799c8..2cf9d09cb4 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-20 JP Rosevear <jpr@ximian.com>
+
+ * gui/comp-editor-factory.c (get_default_event): make sure to get
+ the date in the current zone, not at UTC
+
2002-08-19 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (set_date_label): stop adding redundant
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);