Closed gaokun closed 9 months ago
Sorry, 是dayjs的bug
date.locale('en').format('YYYY-MM-DD HH:mm:ss') 在 utc 时区有问题
Sorry, 是dayjs的bug
date.locale('en').format('YYYY-MM-DD HH:mm:ss') 在 utc 时区有问题
date.locale is not a function TypeError: date.locale is not a function at Object.format (webpack-internal:///./node_modules/ant-design-vue/es/vc-picker/generate/dayjs.js:262:19) at formatValue (webpack-internal:///./node_modules/ant-design-vue/es/vc-picker/utils/dateUtil.js:124:79) at eval (webpack-internal:///./node_modules/ant-design-vue/es/vc-picker/hooks/useValueTexts.js:29:83) at useMemo (webpack-internal:///./node_modules/ant-design-vue/es/_util/hooks/useMemo.js:8:59) at useValueTexts (webpack-internal:///./node_modules/ant-design-vue/es/vc-
我用的也是3.2.20这个版本重新会显报错了
Version
3.2.20
Environment
macos, Chrome, vue3
Reproduction link
https://github.com/gaokun/antdv-datepicker
Steps to reproduce
详见: https://github.com/gaokun/antdv-datepicker
What is expected?
显示成8点
What is actually happening?
显示为0点
Additional Info
示例从西一区, UTC, 到东一区, 时间应该依次相差1小时, 但UTC时区的显示错误
但是popup中的time picker有一部分显示的是正确的
Code