Environment
v3.4.1
Reproduction link
https://run.iviewui.com/zglVaSWB
Steps to reproduce
<DatePicker v-model="dateValue" />
dateValue
= 2019-05-16T16:00:00.000Z
What is expected?
2019-05-17
What is actually happening?
2019-05-16
Its seems that the component gets the date part without refering to the timezone indicated.
1条答案
按热度按时间kognpnkq1#
try this
dateValue=new Date('2019-05-16T16:00:00.000Z');