Skip to content

Issues with Date Internationalisation #1400

Open
@DougMidgley

Description

@DougMidgley

When setting locale ambiguous dates such as 8/6/2018 which could be 6th August (US format) or 8th June (International Format) the date parser can sometimes mistakenly reset date to the other format.
This is set in date-picker.jsx in the Formatter (line 186 I think) where the date is set which is currently in International DD/MM/YYYY format, but when parsing using the default parser (218) it reads this in MM/DD/YYYY format, thus changing the date.
Would it make sense to use YYYY-MM-DD format in the Formatter to avoid such potential issues?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions