aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/task-page.c9
2 files changed, 16 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 21dddaa0a8..7be7a0b49b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2004-09-10 Hannah & Fazlu <hannah_lins@yahoo.co.in>
+
+ Fixes bug #65051
+
+ * calendar/gui/dialogs/task-page.c (task_page_fill_component):
+ Compared the dates and time
+
2004-09-10 Rodrigo Moya <rodrigo@novell.com>
Fixes #62374
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 4fe50f5bc5..dc2e154b46 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -546,6 +546,15 @@ task_page_fill_component (CompEditorPage *page, ECalComponent *comp)
e_cal_component_set_dtstart (comp, NULL);
}
+ if (start_date_set && due_date_set) {
+ int i = 0;
+ i = icaltime_compare (start_tt, due_tt);
+ if (i == 1) {
+ comp_editor_page_display_validation_error (page, _("Due date is wrong"), priv->due_date);
+ return FALSE;
+ }
+ }
+
/* Classification. */
e_cal_component_set_classification (comp, classification_get (priv->classification));