ElemeFE / element

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

[Bug Report] TimePicker format issue. #20624

Open SuperOnee opened 3 years ago

SuperOnee commented 3 years ago

Element UI version

2.14.1

OS/Browsers version

Google chrome Version 87.0.4280.88 (Official Build) (64-bit)

Vue version

2.6.12

Reproduction Link

https://codepen.io/pen/?&prefill_data_id=1d3c4f76-d95e-4e86-a7eb-e5042dc3de92

Steps to reproduce

  1. component->timePicker
  2. use Arbitrary time range
  3. value-format: "HH:mm"
  4. initialize the binding value with an Array: [new Date(), new Date()].

What is Expected?

fix it.

What is actually happening?

Time picker format issue, there's an issue when i use Arbitrary time range, value-format is "HH:mm", and i bind default value for the component which is an array like [new Date(), new Date()], and i log the array out put is like: 23:59:00 GMT 0805 (China Standard Time)

zhouzhongyuan commented 3 years ago

PR is welcomed.

lukaiNB commented 3 years ago

fixing

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.