Setting timezone in coral datepicker | Community
Skip to main content
Level 3
July 10, 2018

Setting timezone in coral datepicker

  • July 10, 2018
  • 2 replies
  • 3932 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 10, 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

Arun Patidar
Level 2
May 18, 2021

Hi Priya,

 

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