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.
通过添加yyyy/mm/dd的格式解决了 #2419 提出的读取失败的问题,同时支持了yyyy/m/d, yyyy/mm/d等各种格式。我们针对缩写造成的长度变化仅在返回format的过程中进行判断并返回对应的format,而不对其缩写进行补全。我们的做法相比于 #2432 通过补0完成缩写补全的解决方式,规避了繁杂的if语句判断,尽可能得减少了代码量及对原代码的改动。此外我们还支持了将2022缩写为22这一年份缩写的判断。