decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.97k stars 3.05k forks source link

Timezone support for datetime fields #7239

Open marisademeglio opened 5 months ago

marisademeglio commented 5 months ago

Is your feature request related to a problem? Please describe.

I'm using this CMS as a backend for a small website built via SSG so the owner can maintain it themselves. There is an "events" collection and it's important that they can specify the timezone for an event.

Describe the solution you'd like

A timezone field for the datetime picker.

Describe alternatives you've considered

I could create a select with a few timezones in it and then recalculate datetime value relative to that.

Additional context

philiprenich commented 2 months ago

Giving the author the option to select the timezone is good. Additionally, removing that UI requirement with useful defaults would be nice. Use the client's timezone or allow the configuration to specify the timezone.