Highlighted

Setting timezone in coral datepicker

priyag89962601

10-07-2018

Hi,

I am using coral datepicker. But when i am authoring the date and time in datepicker, and picking it in current timezone in Java, it is changing the timezone to UTC and changing the date and time according to UTC time. Is there any way to set any default timezone in AEM ? OR to provide the dropdown for author to select which timezone he wants to use?

Thanks,

Priya

Replies

Highlighted

Arun_Patidar

MVP

10-07-2018

Hi,

I don't thinks so we can change timezone other than UTC in date picker component .

but as you suggested you can use dropdown with date picker and convert date based on timezone dropdown.

You can also specify below with date picker.

valueFormat
displayTimezoneMessage

More info

DatePicker — Granite UI 1.0 documentation

How to configure AEM Datepicker to select UTC datetime instead of local datetime