ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.04k stars 14.63k forks source link

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

Open Tiper-In-Github opened 1 month ago

Tiper-In-Github commented 1 month ago

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.

Tiper-In-Github commented 1 month ago

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.