Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix first day of week in dob customer field #11057

Merged
merged 3 commits into from
Oct 24, 2017

Conversation

joachimVT
Copy link

@joachimVT joachimVT commented Sep 26, 2017

Description

The frontend datepicker control for the DOB field is not localized: month names, day names and week start date are all using en_US. This pull request fixes this using the first day of the week set in the back office (core_config_data)

Fixed Issues (if relevant)

  1. Frontend: Datepicker/calendar control does not use the store locale #6350

Manual testing scenarios

  1. Admin > Settings > Configuration > Customer > Customer Configuration > "Show Date of Birth: Require"
  2. Admin > Settings > Configuration > General > Locale Options > "First Day of Week: Monday"
  3. clear cache / rebuild static assets if needed
  4. In the frontend, edit or create your account and use the datepicker of the DoB control

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Sep 26, 2017

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ joachimVT
❌ paliarush
❌ viktym

@dmanners
Copy link
Contributor

@joachimVT it looks like you have 2 extra commits on this branch that I dont think relate to the bug fix. (c3ea1f5, 0c0393d) Can you clean these off the PR or are they suppose to be there?

@joachimVT
Copy link
Author

@dmanners I don't know why these 2 extra commits are on my branch. How could I clean these off ?

@dmanners
Copy link
Contributor

@joachimVT running git reset --hard HEAD~2 and then doing a forced pushed should be enough for you. Just make sure you are on the right branch before you do it. If that does not do it for you a rebase will work but the reset is probably the better option here. See https://stackoverflow.com/a/1338744/1141023 for some more information on the topic.

@dmanners
Copy link
Contributor

Actually is this branch created from develop or develop2.2? The PR is for the 2.2 branch so if the branch was created from develop you might get some different commits. Options would be either to recreate the branch from 2.2 and cherry-pick your commit onto your new branch or running a git reset to remove the two other commits.

@vrann vrann reopened this Sep 29, 2017
@joachimVT
Copy link
Author

joachimVT commented Oct 6, 2017

@vrann @dmanners git reset hard isn't working for me. Should I create a new pull request with the same modifications ? So that the 2 extra commits are gone in my new pull request ?

@vrann
Copy link
Contributor

vrann commented Oct 24, 2017

@dmanners @joachimVT sorry for the confusion, two additional commits appeared because of the issue in our infrastructure (branch was force-pushed at some point) Now it is resolved and we can accept your fix as is.

@okorshenko okorshenko merged commit 9fa5ddd into magento:2.2-develop Oct 24, 2017
@okorshenko
Copy link
Contributor

Hi @joachimVT could you please accept the invite in the GitHub to join magento team?

@joachimVT
Copy link
Author

Hi @okorshenko I didn't receive any invite in Github ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants