Skip to content

Invalid date when customer validate with French locale #9743

Closed
@vjacquemin-sqli

Description

@vjacquemin-sqli

Preconditions

  1. Magento 2.1.5
  2. PHP 7
  3. MySQL 5.6

Steps to reproduce

  1. Set Backoffice to French locale : account settings ->language French (France)
  2. Modify a customer and set date of birthday (for example : 04/17/1973)

Expected result

  1. Customer validation with new DOB

Actual result

  1. Error message "Invalid date"

I found in Magento\Framework\Data\Form\Filter\Date class before line 65, the date value is okay, after the l.65, date value contains space chars. I think Zend_Filter_NormalizedToLocalized "filter" method insert spaces (as thousand separators). If I ignore this line, validation succeeds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions