-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289 #17383
Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289 #17383
Conversation
Hi @teddysie. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @teddysie , please, sign CLA, otherwise, we can't process your pull request |
Ok CLA signed |
Hi @teddysie. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Fix month dropdown on field Year-to-date in Stores>Configuration>General>Reports>Dashboard
Fixed Issues (if relevant)
Manual testing scenarios
This bug just happen on date 30 or 31 every months because of "bug" mktime php
This issue caused by set month without date. So if current date is 31, on second month it will set into 31 February. Because 31 February not exist, mktime will set it into 2 March. When we get the month, so it will show 03 instead of 02. So I add 1 on date parameter because we must set date on mktime to get accurate month.
Contribution checklist