Using a time zone that shifts to the next date (relatively to the browser time zone) in combination with a custom short display format, we're getting an issue with DateItem.
Locally, we're March 29th.
I'm using a time zone offset of +16:00 (Pacific Fiji) (enough of a difference to make it tomorrow in that time zone)
When I pull up the time picker, the 30th is highlighted - this is perfect, as we are March 30th in Fiji time.
The issue comes when I pick it... once I click on the 30th, the date gets offset a second time... and March 30th ends up being displayed.
Adding DateUtil.setInputFormat makes things even odder- the date gets an extra day bump... and gets an extra day every time the date picker loses focus.
We reproduced it in a testbed under SmartClient v12.0p_2021-03-17:
Interestingly, the problem disappears if we don't have a custom format... suggesting that the date formatting feature might be re-offsetting the date instead of keeping it as a "logical date" internally.
Regards,
--
Eric
Locally, we're March 29th.
I'm using a time zone offset of +16:00 (Pacific Fiji) (enough of a difference to make it tomorrow in that time zone)
When I pull up the time picker, the 30th is highlighted - this is perfect, as we are March 30th in Fiji time.
The issue comes when I pick it... once I click on the 30th, the date gets offset a second time... and March 30th ends up being displayed.
Adding DateUtil.setInputFormat makes things even odder- the date gets an extra day bump... and gets an extra day every time the date picker loses focus.
We reproduced it in a testbed under SmartClient v12.0p_2021-03-17:
Code:
DateUtil.setShortDisplayFormat('yyyy-MM-dd'); DateUtil.setInputFormat('YMD'); Time.setDefaultDisplayTimezone ('+16:00'); var form = isc.DynamicForm.create({ numCols : 1, width : 300, fields : [{ name : 'message', type : 'date', editorType : 'DateItem', useTextField : true, title : 'Date picker' }] }); form.show();
Regards,
--
Eric
Comment