使用 timezong 插件微信开发工具一大堆警告问题
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
我用的是 taro 构建的微信小程序,在使用 timezong 插件方法时,微信开发工具出现大量的警告,加上大量的倒计时,导致微信开发工具崩溃,目前明确是 timezong 里面使用 newDate 里面的参数导致微信小程序的警告
**Expected behavior**
没有黄色警告
**Information**
- Day.js Version [1.11.18]
- OS: [windows]
- Browser [微信开发工具]
目前我猜到的问题应该是 utc 插件和 timezone 插件的 new Date 的传递参数的格式导致,如果直接使用 dayjs ,不使用任何插件则没有任何警告
Contributor guide
Research direction
Start by reproducing the warning in WeChat Developer Tools with Taro and Day.js's utc and timezone plugins enabled, then trace the plugins' new Date inputs. Done means the same countdown scenario produces no yellow warnings or tool crash; add a focused regression test if the repository's existing tests cover this behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100