Expand my Community achievements bar.

Setting timezone in coral datepicker

Avatar

Level 3

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

2 Replies

Avatar

Community Advisor

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



Arun Patidar

Avatar

Level 2

Hi Priya,

 

We also have a similar requirement, can you suggest how you have resolved the same.