e.g. :default-time="['00:00:00', '23:59:59']" will lead to [ "2018-04-04T00:00:00.000Z", "2018-04-05T23:59:59.000Z" ] when the daterange is set to '2018-04-04 - 2018-04-05'
What is actually happening?
The example will lead to [ "2018-04-03T22:00:00.000Z", "2018-04-05T21:59:59.000Z" ].
This seems to happen because the default-default-time is '22:00:00' and the difference of 24:00:00 to the set default-time is subtracted.
Element UI version
2.3.4
OS/Browsers version
Windows 10 / Chrome / Firefox
Vue version
2.5.17-beta.0
Reproduction Link
https://jsfiddle.net/7x4k1d16/2/
Steps to reproduce
(if the jsfiddle link isnt working just use the fiddle of your example under https://element.eleme.io/#/en-US/component/date-picker#default-time-for-start-date-and-end-date)
What is Expected?
e.g. :default-time="['00:00:00', '23:59:59']" will lead to [ "2018-04-04T00:00:00.000Z", "2018-04-05T23:59:59.000Z" ] when the daterange is set to '2018-04-04 - 2018-04-05'
What is actually happening?
The example will lead to [ "2018-04-03T22:00:00.000Z", "2018-04-05T21:59:59.000Z" ]. This seems to happen because the default-default-time is '22:00:00' and the difference of 24:00:00 to the set default-time is subtracted.