Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2008-08-14 15:54:22 -0400
committerrelves2008-08-14 15:54:22 -0400
commit5172c71c8cc0fb2b9255739dd4516741ce8eeeaa (patch)
treedea752fd335089e4c8159e5111c6f8a973cebc54
parent41b2007bc3c2bfce4c72f161ed77c19d4be3d2e3 (diff)
downloadorg.eclipse.mylyn.tasks-5172c71c8cc0fb2b9255739dd4516741ce8eeeaa.tar.gz
org.eclipse.mylyn.tasks-5172c71c8cc0fb2b9255739dd4516741ce8eeeaa.tar.xz
org.eclipse.mylyn.tasks-5172c71c8cc0fb2b9255739dd4516741ce8eeeaa.zip
NEW - bug 244218: due dates without time should be set to 00:00 midnight that day
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244218
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java
index fbda0230c..f3f59e3a3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java
@@ -14,6 +14,7 @@ import java.util.Date;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.provisional.commons.ui.DatePicker;
+import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
@@ -71,6 +72,9 @@ public class DateAttributeEditor extends AbstractAttributeEditor {
public void widgetSelected(SelectionEvent e) {
Calendar cal = datePicker.getDate();
if (cal != null) {
+ if (!showTime) {
+ TaskActivityUtil.snapStartOfDay(cal);
+ }
setValue(cal.getTime());
} else {
setValue(null);

Back to the top