Details
-
Improvement
-
Resolution: Obsolete
-
Neutral
-
None
-
5.4
-
None
Description
Hi guys,
Is there any possibility that you can make the date picker widget's time zone configurable?
I looked at the code and the default time zone will always have the browsers' time zone offset attached which (for my project) is not desirable. I would be happy if we could just have a toggle that uses the default time zone, or better make it configurable.
info.magnolia.ui.form.field.factory.DateFieldFactory#setTimeZone
private void setTimeZone(DateField popupDateField) {
TimeZone timeZone = TimeZone.getDefault();
try {
int offset = Page.getCurrent().getWebBrowser().getRawTimezoneOffset();
timeZone.setRawOffset(offset);
}
catch (NullPointerException e) {
// don't throw null pointer
}
popupDateField.setTimeZone(timeZone);
}
Checklists
Acceptance criteria
Attachments
Issue Links
- is duplicated by
-
MGNLUI-6086 DateField handles time zone from user profile incorrectly
-
- Closed
-
- relates to
-
MGNLUI-2694 Dates and times should be displayed in a configured timezone to not confuse user
-
- Closed
-