My application has the default time zone as "+0:00".
On server ListGrids, I have the filterEditor being displayed, example:
The DataSource on the ListGrid is set to use AdvancedCriteria.
On a datetime field, I'm using the DateRange editor to chose the from date as Yesterday. The DSRequest is coming with a time being set:
I expected the value to be either "2011-06-26T00:00:00" or "2011-06-26".
This is with SC_SNAPSHOT-2011-06-13/PowerEdition.
Code:
DateUtil.setDefaultDisplayTimezone("+0:00");
Code:
mainGrid.setShowFilterEditor(true);
Code:
final DataSource ds = DataSource.get(ALARM_DATASOURCE_NAME); ds.setWillHandleAdvancedCriteria(true);
Code:
{ "dataSource":"DETAILED_ALARM_V", "operationType":"fetch", "operationId":"OperationsAlarms", "componentId":"isc_MainListGrid_4", "data":{ "operator":"and", "criteria":[ { "operator":"and", "criteria":[ { "fieldName":"error_date", "operator":"greaterOrEqual", "value":"2011-06-26T07:00:00" } ] } ] }, "startRow":0, "endRow":75, "textMatchStyle":"substring", "resultSet":[ResultSet ID:isc_ResultSet_5 (created by: isc_MainListGrid_4)], "callback":{ "caller":[ResultSet ID:isc_ResultSet_5 (created by: isc_MainListGrid_4)], "methodName":"fetchRemoteDataReply" }, "willHandleError":true, "showPrompt":false, "prompt":"Finding Records that match your criteria...", "oldValues":{ "operator":"and", "criteria":[ { "operator":"and", "criteria":[ { "fieldName":"error_date", "operator":"greaterOrEqual", "value":"2011-06-26T07:00:00" } ] } ] }, "clientContext":{ "requestIndex":2 }, "requestId":"DETAILED_ALARM_V$62716" }
This is with SC_SNAPSHOT-2011-06-13/PowerEdition.
Comment