feat: adapt iOS date string format #678
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
某些 iOS 设备可能不支持使用
yyyy-MM-ddTHH:mm:ssZ
格式的字符串创建 Date。微信开发者工具在新版中加入了警告,每次用上述格式调用 Date 构造函数时就会在控制台打印一条日志,影响开发时的体验。
由于不方便在 adapters 中修改 AV 上面的方法,索性直接改写 AV._parseDate,也同时支持了 react-native 等平台。