diff options
author | JP Rosevear <jpr@ximian.com> | 2002-08-20 02:11:40 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-08-20 02:11:40 +0800 |
commit | b090003f8bc69b8b79cadc2d1bed639f257531cb (patch) | |
tree | ad7698e416f72575b7c13e78d3c984f99bf60f07 /calendar/gui | |
parent | ad18d0ebe8bbe4c2b51d0f533429d9f9db1d2f57 (diff) | |
download | gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.gz gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.bz2 gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.lz gsoc2013-evolution-b090003f8bc69b8b79cadc2d1bed639f257531cb.tar.xz 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/gui')
-rw-r--r-- | calendar/gui/comp-editor-factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |