From ec314ee921b460d8401132bd661575120da60931 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Tue, 20 Mar 2018 15:34:54 +0200 Subject: Fix date ranges for date and datetime fields (#10685) Fixes #9765 --- .../vaadin/shared/ui/datefield/AbstractDateFieldState.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'shared') 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 -- cgit v1.2.3