summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-03-20 15:34:54 +0200
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-03-20 15:34:54 +0200
commitec314ee921b460d8401132bd661575120da60931 (patch)
tree61dc3e2ca066fdee83e995703f7795e3ea578f01 /shared/src
parent803a453a28c00a38e69e9beabe3efe6590486b3f (diff)
downloadvaadin-framework-ec314ee921b460d8401132bd661575120da60931.tar.gz
vaadin-framework-ec314ee921b460d8401132bd661575120da60931.zip
Fix date ranges for date and datetime fields (#10685)
Fixes #9765
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java
index 553e82a57e..30f8c71159 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java
@@ -49,17 +49,21 @@ public class AbstractDateFieldState extends AbstractFieldState {
/**
* Start range that has been cleared, depending on the resolution of the
- * date field.
+ * date field. The format is "2018-05-27" or "2018-05-27 14:38:39"
+ *
+ * @see com.vaadin.ui.AbstractDateField#RANGE_FORMATTER
*/
@NoLayout
- public Date rangeStart;
+ public String rangeStart;
/**
- * End range that has been cleared, depending on the resolution of the date
- * field.
+ * End range that has been cleared, depending on the resolution of the
+ * date field. The format is "2018-05-27" or "2018-05-27 14:38:39"
+ *
+ * @see com.vaadin.ui.AbstractDateField#RANGE_FORMATTER
*/
@NoLayout
- public Date rangeEnd;
+ public String rangeEnd;
/**
* The JSON used to construct a TimeZone on the client side, can be