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.
我们选择采用
NoModelDataListener
进行日期时间读取,这种方式可以解决读取日期错误的问题。我们的做法相比于#2322中上一名回答者仅仅转化为一种时间格式的做法,增加了对于读取日期格式的多种判断与处理,这可以使多种条件下的日期时间格式更加规范,同时除了使用
NoModelDataListener
进行时间读取外,我们也在Test文件中给出了更多的时间正确读取方法。