You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DatePicker component in your Vue3 application is not formatting the date and time as "08-24 07:04" because the format prop is incorrectly set. To format the date and time correctly, you need to set the format prop to a string that specifies the desired format. For example:
This should ensure that the date and time are displayed as "08-24 07:04" in the DatePicker component. Additionally, ensure that the DatePicker component is correctly handling the format prop as a string. According to the ViewUIPlus library, the format prop should be a string, and the component should correctly parse and display the date based on this format [1][2].
Environment
windows / Microsoft Edge 版本 126.0.2592.81 (正式版本) (64 位) / Vue3
Reproduction link
https://run.iviewui.com/zmsVYiBL
Steps to reproduce
DatePicker 设置format为MM:dd HH:mm 后 显示时间错误
What is expected?
设置初始值“2024-07-04 00:00:00”, DatePicker显示 08-24 07:04
What is actually happening?
设置初始值“2024-07-04 00:00:00”, DatePicker显示 07-04 00:00
The text was updated successfully, but these errors were encountered: