-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dayjs.diff 错误 #2428
Labels
Comments
测试发现和 const endTime = dayjs('2023/08/25 10:35')
const endTime2 = dayjs('2023/08/25 10:35', 'YYYY/MM/DD HH:mm') |
原因应该是在这里,当设置了自定义 format 的时候,进入了 dayjs/src/plugin/customParseFormat/index.js Lines 214 to 259 in a9d7d03
|
🎉 This issue has been resolved in version 1.11.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
Expected behavior
通过调试发现这种情况下
endTime
对象内部没有 $x 属性,所以导致,获取 $x.$localOffset 时报错但是只需要改成下面这样,去掉 dayjs 的时间格式,
endTime
对象就会有一个为空对象{}
的$x
属性。就能正常使用Information
The text was updated successfully, but these errors were encountered: