When I try to disable DST by invoking DateUtil.setAdjustForDST(false) DataTime editor in grid is behaving incorrectly.
When I'm editing date that is not in the DST period (like December 9) it is working correctly.
When I try to edit date from DST period (like May 9) grid editor subtracts hours and I'm unable to select correct time.
This is my global configuration
Data Source Field settings:
I'm missing some settings or this is a bug ? How can I correctly configure DateTime editor in grid ?
When I'm editing date that is not in the DST period (like December 9) it is working correctly.
When I try to edit date from DST period (like May 9) grid editor subtracts hours and I'm unable to select correct time.
This is my global configuration
Code:
DateUtil.setShortDateDisplayFormatter(DateUtil.TOEUROPEANSHORTDATE); DateUtil.setNormalDateDisplayFormatter(DateUtil.TOEUROPEANSHORTDATE); DateUtil.setNormalTimeDisplayFormatter(DateUtil.TOEUROPEANSHORTDATETIME); DateUtil.setShortDatetimeDisplayFormatter(DateUtil.TOEUROPEANSHORTDATETIME); DateUtil.setInputFormat(AppConstants.DATE_INPUT_FORMAT); DateUtil.setAdjustForDST(false);
Code:
field = new DataSourceDateTimeField("FieldName"); field.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
Comment