nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.21k stars 5.29k forks source link

Customer birthday cannot be edited in admin area #7234

Closed DhavalPra95 closed 3 months ago

DhavalPra95 commented 3 months ago

nopCommerce version: 4.70.0 To 4.70.3

Steps to reproduce the problem: Date not working properly.

EX : Admin > Customer > Edit > Date of birth

image
DhavalPra95 commented 3 months ago

I have fixed the issue. Issue is date type. I have fixed by changed the type date to date-local.

danFbach commented 3 months ago

standard html date input value should be formatted yyyy-MM-dd. i'm guessing kendoUI had a polyfill for this or something and dotnet's IHtmlHelper doesn't format dates correctly for inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

danFbach commented 3 months ago

sorry for two PR, made the changes through github website instead of project 😅