SmartClient Version: v8.3p_2013-01-22/LGPL Development Only (built 2013-01-22)
FF 17.0.3 ESR
GWT 2.5
Windows 7
Executed test in FF 17.0.3 ESR browser itself
---
Using RelativeDateItem, if I select say 19-Feb-13 as my date, it shows 19.Feb.2013 24:00 in the picker. However, in the label to the right of the component, it says 20.Feb.2013 24:00. See attached for screenshot.
I am formatting my date in a special manner. Is my date formatting causing this inconsistency?
FF 17.0.3 ESR
GWT 2.5
Windows 7
Executed test in FF 17.0.3 ESR browser itself
---
Using RelativeDateItem, if I select say 19-Feb-13 as my date, it shows 19.Feb.2013 24:00 in the picker. However, in the label to the right of the component, it says 20.Feb.2013 24:00. See attached for screenshot.
I am formatting my date in a special manner. Is my date formatting causing this inconsistency?
Code:
private void changeDateFormat() { DateUtil.setShortDatetimeDisplayFormatter(new DateDisplayFormatter() { public String format(Date date) { if(date == null) { return null; } else { final DateTimeFormat dateFormatter = DateTimeFormat.getFormat(DATE_FORMAT); return dateFormatter.format(date); } } }); // It is a requirement that we implement a custom date parser or the onChanged event // will not fire. DateUtil.setDateParser(new DateParser() { public Date parse(String dateString) { final DateTimeFormat format = DateTimeFormat.getFormat(DATE_FORMAT); return format.parse(dateString); } }); }
Comment