magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.51k stars 9.31k forks source link

Wrong customer DOB save on backend. #37894

Open arjunkumar1910 opened 1 year ago

arjunkumar1910 commented 1 year ago

Preconditions and environment

Steps to reproduce

Steps to reproduce

  1. Login to the Magento246 backend.
  2. Go to the customer menu and click on the All Customer submenu.
  3. Click on Add New Customer and Fill all customer details.
  4. Add future dob in the text box.
  5. Save the customer and customer saved successfully.
  6. In the customer grid future date is showing, but in the edit form current date showing.

check following video for details

https://www.awesomescreenshot.com/video/20036011?key=d479fef608118b0dc1bda5ca8e0fe0e3

Expected result

The customer should not be saved in the grid and the date should be current if a future date is selected.

Actual result

The future date is shown in the grid.

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @arjunkumar1910. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 year ago

Hi @arjunkumar1910,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce

We have created a customer with DOB 18-AUG-2023.(future date).it is showing in admin grid as as 18-AUG-2023

Screenshot 2023-08-18 at 1 54 25 PM

While Customer>>Account Information still it is showing as 17-AUG-2023.

Screenshot 2023-08-18 at 1 55 01 PM

It should be 18-AUG-2023 or it should give error while creating customer accounts with future dates.

Hence Confirming the issue.

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9350 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

pabodah commented 1 year ago

I tested this in a default Magento 2.4.6 instance. Seems like the DOB cannot be set as a future date via the datepicker and also by editing manually. If you try to do so, a notification will be displayed under the field and the customer cannot be saved which seems to be the correct approach.

Paboda Hettiarachchi - Customers - Customers - Magento Admin 2023-09-21 11-39-24

Please recheck the issue.

chalov-anton commented 11 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 11 months ago

Hi @chalov-anton. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 11 months ago

Hi @chalov-anton, here is your Magento Instance: https://b5060367c05870b0e436c98a4a6d5057.instances-prod.magento-community.engineering Admin access: https://b5060367c05870b0e436c98a4a6d5057.instances-prod.magento-community.engineering/admin_abe3 Login: 9888beb3 Password: e7282a654953