Forum Discussion
Hi Natkinson,
Are you all set? I have been thinking about your challenge!
If you are using standard date and time HTML input fields for date/time, it encodes the date in standard ISO 8601 format and includes the time zone. Then, displaying the fields in your custom component using Freemarker will automatically output the date and time in the correct time zone to the user viewing it.
The most you'd have to do in that circumstance is use Javascript to pull the time zone from the browser and add Freemarker code to set the Time Zone:
<#setting time_zone="America/New_York">
If you are not using a standard date and time input field or the time fields are not in ISO 8601 format. Then how you adapt this will depend on the format and you'd need to post more details for someone to help you complete your component.
Cheers!
Related Content
- 5 years ago
- 3 months ago
- 10 years ago