Hi,
clicking between the date- and textfield adds 2 hours to the time.
Seems only the case when using format DateDisplayFormat.TOSERIALIZEABLEDATE.
SmartGWT build 715
clicking between the date- and textfield adds 2 hours to the time.
Seems only the case when using format DateDisplayFormat.TOSERIALIZEABLEDATE.
SmartGWT build 715
Code:
private Canvas getTest3() { Canvas c = new Canvas(); final DynamicForm form = new DynamicForm(); final DateItem date = new DateItem("Date"); date.setDateFormatter(DateDisplayFormat.TOSERIALIZEABLEDATE); date.setUseTextField(true); TextItem text = new TextItem("Text"); form.setItems(date, text); c.addChild(form); final Label label = new Label(); label.moveTo(0, 100); date.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { label.setContents(date.getValue().toString()); } }); c.addChild(label); return c; }
Comment