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

能不能在 解析时间出错的情况下, 控制台报个错误? #2009

Open
shifenhutu opened this issue Jul 31, 2022 · 0 comments
Open

Comments

@shifenhutu
Copy link

Describe the bug
我们有些用户用的是低版本的ios safari ,,解析时间 出现了 Invalid Date https://github.com/iamkun/dayjs/issues/2008)

虽然我们前端埋了 sentry 来收集错误, 但是由于 这个 时间解析错误后,没有抛出错误,所以sentry无法捕捉到

结果就是 部分用户那边 时间无法正常显示, 而我们也不知道用户那边不正常

所以就建议, 能不能让dayjs 在解析日期 时间出错的情况下, 控制台抛出一个错误, 这样就可以通过sentry来捕捉到

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