Currently, when selecting a date the output will include the time offset from the user's timezone. For e.g., selecting 1970-01-01 from the date picker type date will result in -3600000 if a user is from gmt 2.
The proposed API would consist of a time-zone property where the user could opt to change how the dates are interpreted/parsed. For e.g. time-zone="UTC"
This function solves the problem (这个功能解决的问题)
Currently, when selecting a date the output will include the time offset from the user's timezone. For e.g., selecting
1970-01-01
from the date picker type date will result in-3600000
if a user is from gmt 2.I would really like to see timezone support for date-picker (like it was implemented for time-picker https://github.com/tusen-ai/naive-ui/commit/1fa3eb22ef7cbc46a3a06a0d1d5c404f7077c912).
Expected API (期望的 API)
The proposed API would consist of a time-zone property where the user could opt to change how the dates are interpreted/parsed. For e.g.
time-zone="UTC"