Skip to content

Incompatible date format in some locales with 'future' #981

@royas

Description

@royas

I'm submitting a...


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

Current behavior

For example in 'es' language, 'date' validator requires format DD/MM/YYYY, but 'future' validator treats it as Y/M/D and performs wrong calculations.

Expected behavior

I think that extracting format from 'date' to use in 'future' could be a little tricky, but maybe suppor some kind of a format hint in 'future' validator?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions