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

🐛 The customParseFormat plugin doesn't handle Dayjs, Date, and number types properly. #2744

Open
av-k opened this issue Oct 9, 2024 · 0 comments

Comments

@av-k
Copy link

av-k commented Oct 9, 2024

Describe the bug
The dayjs function itself (except Dayjs type in case dayjs() call works properly) and utc plugin and customParseFormat, does not work as expected. It fails to handle certain input types correctly. A demo showcasing the issue can be found here.

Expected behavior
The customParseFormat plugin should handle Dayjs, Date, and number input types correctly, just as it does for string types.

Information

  • Day.js Version: v1.11.13
  • OS: Fedora 6.10.12-100.fc39.x86_64
  • Browser: Chrome Version 129.0.6668.89 (Official Build) (64-bit)
  • Time zone: Berlin (GMT+2)
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

1 participant