diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-03-20 15:34:54 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-03-20 15:34:54 +0200 |
commit | ec314ee921b460d8401132bd661575120da60931 (patch) | |
tree | 61dc3e2ca066fdee83e995703f7795e3ea578f01 /shared | |
parent | 803a453a28c00a38e69e9beabe3efe6590486b3f (diff) | |
download | vaadin-framework-ec314ee921b460d8401132bd661575120da60931.tar.gz vaadin-framework-ec314ee921b460d8401132bd661575120da60931.zip |
Fix date ranges for date and datetime fields (#10685)
Fixes #9765
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java | 14 |
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 |