Hi,
I am using SmartGWT Power 5.0. Have a problem here.
I have a ListGrid, then I add a DateTime ListGridField to the grid like this:
ListGridField discDtLGField = new ListGridField("CALL_DISC_DT");
discDtLGField.setWidth(120);
discDtLGField.setType(ListGridFieldType.DATETIME);
discDtLGField.setAlign(Alignment.LEFT);
discDtLGField.setFormat("MM/dd/yyyy HH:mm:ss");
When I ran the application, choose a date for the field, the DataRange window pops up, then I choose today 3/31/2015 0::00 as shown in first screen shot. When I click OK to close the Data Range popup, it shows
"Since Mar 30, 2015" instead of "Mar 31, 2015". See Screen shot 2.
From the log, I found that the criteria sent to the server is actually
TO_DATE('2015-03-30 15:00:00','YYYY-MM-DD HH24:MI:SS')
it's 9 hours behind.
Am I missing anything here? Please help.
Thanks,
Jevons
I am using SmartGWT Power 5.0. Have a problem here.
I have a ListGrid, then I add a DateTime ListGridField to the grid like this:
ListGridField discDtLGField = new ListGridField("CALL_DISC_DT");
discDtLGField.setWidth(120);
discDtLGField.setType(ListGridFieldType.DATETIME);
discDtLGField.setAlign(Alignment.LEFT);
discDtLGField.setFormat("MM/dd/yyyy HH:mm:ss");
When I ran the application, choose a date for the field, the DataRange window pops up, then I choose today 3/31/2015 0::00 as shown in first screen shot. When I click OK to close the Data Range popup, it shows
"Since Mar 30, 2015" instead of "Mar 31, 2015". See Screen shot 2.
From the log, I found that the criteria sent to the server is actually
TO_DATE('2015-03-30 15:00:00','YYYY-MM-DD HH24:MI:SS')
it's 9 hours behind.
Am I missing anything here? Please help.
Thanks,
Jevons