diff options
author | JP Rosevear <jpr@ximian.com> | 2002-09-11 02:34:19 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-09-11 02:34:19 +0800 |
commit | 264925d54008c4310168fa69f30b8764d51cbe62 (patch) | |
tree | 86b8d8078f2bc5aa857867a727c7a2295ded2afd | |
parent | 6a8f274499967ad57447b60d4cc50f05b1f1e593 (diff) | |
download | gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.gz gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.bz2 gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.lz gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.xz gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.zst gsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.zip |
duh, don't blindly increment the hour without adjusting for the day
2002-09-10 JP Rosevear <jpr@ximian.com>
* gui/comp-editor-factory.c (get_default_event): duh, don't
blindly increment the hour without adjusting for the day
boundaries
Fixes #29983
svn path=/trunk/; revision=18034
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/comp-editor-factory.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index a4d0356cee..f8b32cbd2e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2002-09-10 JP Rosevear <jpr@ximian.com> + + * gui/comp-editor-factory.c (get_default_event): duh, don't + blindly increment the hour without adjusting for the day + boundaries + + Fixes #29983 + 2002-09-10 Rodrigo Moya <rodrigo@ximian.com> Fixes #24032 diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index b3c0c9edb1..8cba8baade 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -324,15 +324,13 @@ get_default_event (gboolean all_day) cal_component_set_dtend (comp, &dt); } else { itt = icaltime_current_time_with_zone (zone); - itt.hour++; - itt.minute = 0; - itt.second = 0; + icaltime_adjust (&itt, 0, 1, -itt.minute, -itt.second); dt.value = &itt; dt.tzid = icaltimezone_get_tzid (zone); cal_component_set_dtstart (comp, &dt); - itt.hour++; + icaltime_adjust (&itt, 0, 1, 0, 0); cal_component_set_dtend (comp, &dt); } |