Skip to content

Issue while saving the date type product attribute #37274

@github-jira-sync-bot

Description

@github-jira-sync-bot

 

ISSUE:
When we add the value to the product attribute of the date type, it is throwing an error.

 

STEPS TO REPLICATE:

  1. Create a new attribute for product - test_date - date type
  2. Add attribute to Attribute Set
  3. Run indexing and cache flush
  4. Select 01/1/1970
  5. save the product
  6. Error - "Invalid input datetime format of value '1/01/1970'"

 

ACTUAL RESULTS:
Getting error when saving 01/01/1970 "Invalid input datetime format of value '1/01/1970'" but not for other dates. I checked for 13/03/2023, 1/1/1980, 03/03/1998

 

EXPECTED RESULTS:

The product should save when the custom date attribute and select as 1/1/1970

Metadata

Metadata

Assignees

No one assigned

    Labels

    EvaluatedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions