Hi Isomorphic,
I have two questions concerning SmartGWT and DST.
#1) DateUtil.setAdjustForDST
I use gwt.xml with no locale information.
Is there a method to get the locale detected by SmartGWT from browser ?
Is there a method to know if the DST will be applyed by SmartGWT based on the locale it detected ?
#2) DateUtil.setDefaultDisplayTimezone
If I am in Europe/Paris timezone (GMT+1) and in a period observing the DST like this month august when it is GMT+2,
What would be the right set up for SmartGWT
2.1) that i am currently using
DateUtil.setDefaultDisplayTimezone("+01:00");
DateUtil.setAdjustForDST(true);
or
2.2)
DateUtil.setDefaultDisplayTimezone("+02:00");
DateUtil.setAdjustForDST(true);
Best regards,
Costy
I have two questions concerning SmartGWT and DST.
#1) DateUtil.setAdjustForDST
Note that setting this flag to true will have no effect unless you are in a locale that is observing Daylight Saving Time this year;
Is there a method to get the locale detected by SmartGWT from browser ?
Is there a method to know if the DST will be applyed by SmartGWT based on the locale it detected ?
#2) DateUtil.setDefaultDisplayTimezone
If I am in Europe/Paris timezone (GMT+1) and in a period observing the DST like this month august when it is GMT+2,
What would be the right set up for SmartGWT
2.1) that i am currently using
DateUtil.setDefaultDisplayTimezone("+01:00");
DateUtil.setAdjustForDST(true);
or
2.2)
DateUtil.setDefaultDisplayTimezone("+02:00");
DateUtil.setAdjustForDST(true);
Best regards,
Costy
Comment