Feature/multiple date format #357
Open
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.
the default order of date picker is Year - Month - Day
However some countries use Month - Day - Year format or Day-Month-Year , so we need to support more format.
refersdate format
Generally speaking, we just need change Year Month Day order , and don't need to change Hour Mins order. Because time format is always fixed.
目前在东南亚国家使用这套组件的时候,发现对本地化支持的不太好。参见日期格式。例如在泰国,我们希望的是月日年,而不是年月日,这和当地用户的使用习惯有较大差异。同时对于时间和分钟,我们却没有这样的换位需求,请参考时间格式
在查看Antd-mobile源码后发现,需要先改动rmc-date-picker,才能继续向ant-mobile提交代码,因此有了这个pull request.