Skip to content
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

在IE11下显示Invalid Date #814

Closed
melon95 opened this issue Mar 4, 2020 · 1 comment
Closed

在IE11下显示Invalid Date #814

melon95 opened this issue Mar 4, 2020 · 1 comment

Comments

@melon95
Copy link

melon95 commented Mar 4, 2020

Describe the bug
dayjs('2020-03-04T02:46:57.000+0000').format('YYYY-MM-DD HH:mm:ss')在IE11下为Invalid Date

Expected behavior
A clear and concise description of what you expected to happen.

Information

  • Day.js Version 1.8.18
  • OS: Window10
  • Browser IE11
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
@iamkun
Copy link
Owner

iamkun commented Mar 4, 2020

非标准时间格式请参考 https://day.js.org/docs/zh-CN/parse/string

For consistent results parsing anything other than ISO 8601 strings https://day.js.org/docs/en/parse/string

@iamkun iamkun closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants