aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-09-11 02:34:19 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-09-11 02:34:19 +0800
commit264925d54008c4310168fa69f30b8764d51cbe62 (patch)
tree86b8d8078f2bc5aa857867a727c7a2295ded2afd /calendar/gui
parent6a8f274499967ad57447b60d4cc50f05b1f1e593 (diff)
downloadgsoc2013-evolution-264925d54008c4310168fa69f30b8764d51cbe62.tar.gz
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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/comp-editor-factory.c6
1 files changed, 2 insertions, 4 deletions
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);
}