Hi Isomorphic!
Setting Time.setNormalDisplayFormat('toShortPadded24HourTime') seems to be ignored in Listgrids, okey thats a minor issue cause I can work around it with timeFormatter in the field definition.
Datetime fields are working now correctly for me, but time fields gets recalculated with timezone before sent to server, even with Time.adjustForDST = false and
Time.setDefaultDisplayTimezone('+00:00').
Here timezone +1, with daylight saving +2 now, I can increase the time in the form of my testapp just by clicking the save button.
I'm using:
SC_SNAPSHOT-2011-06-17
I've tested this with several actual browsers, but always with the same effect.
My testapp can be found here:
https://88.151.78.166/sc-test/time-fields.php
Regards,
Alex
Setting Time.setNormalDisplayFormat('toShortPadded24HourTime') seems to be ignored in Listgrids, okey thats a minor issue cause I can work around it with timeFormatter in the field definition.
Datetime fields are working now correctly for me, but time fields gets recalculated with timezone before sent to server, even with Time.adjustForDST = false and
Time.setDefaultDisplayTimezone('+00:00').
Here timezone +1, with daylight saving +2 now, I can increase the time in the form of my testapp just by clicking the save button.
I'm using:
SC_SNAPSHOT-2011-06-17
I've tested this with several actual browsers, but always with the same effect.
My testapp can be found here:
https://88.151.78.166/sc-test/time-fields.php
Code:
Time.setNormalDisplayFormat('toShortPadded24HourTime'); Time.setShortDisplayFormat('toShortPadded24HourTime'); Time.adjustForDST = false; Time.setDefaultDisplayTimezone('+00:00'); Date.setShortDatetimeDisplayFormat('toEuropeanShortDateTime'); Date.setShortDisplayFormat('toEuropeanShortDate'); Date.setDefaultDateSeparator('.'); Date.setInputFormat("DMY"); isc.RestDataSource.create({ ID:"testDS", operationBindings: [ { operationType:"fetch", dataProtocol:"postParams", dataURL:"/sc-test/rest.php?op=fetch" }, { operationType:"add", dataProtocol:"postParams", dataURL:"/sc-test/rest.php?op=add" }, { operationType:"remove", dataProtocol:"postParams", dataURL:"/sc-test/rest.php?op=remove" }, { operationType:"update", dataProtocol:"postParams", dataURL:"/sc-test/rest.php?op=update" } ], dataFormat:"json", dataURLbase: "/sc-test/rest.php", fields:[ { title: "ID", name:"id", primaryKey: true }, { title: "Datetime 1", name: "dt1", canEdit: false, type: "datetime" }, { title: "Datetime 2", name: "dt2", type: "datetime" }, { title: "Time 1", canEdit: true, name: "time1", type: "time" } ] }); isc.VLayout.create({ width: 850, height: 500, members: [ isc.ListGrid.create({ width: "100%", height: 150, dataSource: "testDS", autoFetchData: true, selectionChanged: function(record, state) { DetailForm.editRecord(record); } }), isc.DynamicForm.create({ ID: "DetailForm", dataSource: "testDS", margin: 20 }), isc.IButton.create({ title: 'save', click: function() { DetailForm.saveData(); } }) ] })
Regards,
Alex
Comment