Hello Isomorphic!
When I'm using datetime fields with Time.setDefaultDisplayTimezone('+00:00'), I always get the prevous day when I use the datepicker.
Seems that the datepicker ignores setDefaultDisplayTimezone and uses the browsers timezone (+02:00 here) but then recalculates the date by -02:00.
I think this happens only in positive timezones.
I'm using:
SC_SNAPSHOT-2011-01-06/LGPL Deployment (built 2011-01-06)
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/index-test.php
Regards,
Alex
When I'm using datetime fields with Time.setDefaultDisplayTimezone('+00:00'), I always get the prevous day when I use the datepicker.
Seems that the datepicker ignores setDefaultDisplayTimezone and uses the browsers timezone (+02:00 here) but then recalculates the date by -02:00.
I think this happens only in positive timezones.
Code:
Time.setNormalDisplayFormat('toShort24HourTime');
Time.adjustForDST = false;
Time.setDefaultDisplayTimezone('+00:00');
Date.setShortDatetimeDisplayFormat('toEuropeanShortDateTime');
Date.setShortDisplayFormat('toEuropeanShortDate');
Date.setDefaultDateSeparator('.');
Date.setInputFormat("DMY");
isc.DynamicForm.create({
fields: [
{ name: 'dt1', type: 'datetime' }
]
})
I'm using:
SC_SNAPSHOT-2011-01-06/LGPL Deployment (built 2011-01-06)
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/index-test.php
Regards,
Alex
Comment