Hi,
I have following test case:
final DateItem date = new DateItem("test");
date.setUseTextField(true);
IButton btn = new IButton("test");
btn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say(date.getValueAsDate().toString());
}
});
DynamicForm form = new DynamicForm();
form.setFields(date);
VLayout layout = new VLayout();
layout.setMembers(form, btn);
layout.draw();
When I enter the date "10/30/1978" (or later) and click test I get "Mon Oct 30 00:00:00 CET 1978".
When I enter the date "10/29/1978" (or earlier) and click test I get "Sat Oct 28 23:00:00 CET 1978".
What's the problem ?
thank you.
I have following test case:
final DateItem date = new DateItem("test");
date.setUseTextField(true);
IButton btn = new IButton("test");
btn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say(date.getValueAsDate().toString());
}
});
DynamicForm form = new DynamicForm();
form.setFields(date);
VLayout layout = new VLayout();
layout.setMembers(form, btn);
layout.draw();
When I enter the date "10/30/1978" (or later) and click test I get "Mon Oct 30 00:00:00 CET 1978".
When I enter the date "10/29/1978" (or earlier) and click test I get "Sat Oct 28 23:00:00 CET 1978".
What's the problem ?
thank you.
Comment