ElemeFE/element

[Feature Request] date-picker components set timezone - datePicker支持指定时区

Opened this issue · 1 comments

Existing Component

Component Name

date-picker

Description

The component accepts a timezone parameter, either in seconds or in units, as the offset of the time zone, which is passed to the datePicker component, so that the time zones of other regions are set and displayed correctly in datePicker.
This comes from the international collaboration requirement of our company. I tried to copy a datepicker component and modified it in the project to achieve this function, but because of the reason I copied it, the dependency of the new component was affected, so I hope to implement and maintain this function in the official library.

In my own modified code, I specify the default value of the time zone as the local time zone. If the developer does not need to specify the time zone, he can not change any code. The developer who needs to specify the time zone only needs to pass the 'timezone' parameter to the component.