Skip to content

Commit e6b92a5

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #17383: Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289 (by @teddysie) Fixed GitHub Issues: - #17289: Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard (reported by @joshuaflood) has been fixed in #17383 by @teddysie in 2.2-develop branch Related commits: 1. 2c64c16 2. 5e847c4
2 parents dd58184 + 66754d6 commit e6b92a5

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field

1 file changed

+1
-2
lines changed

app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field/YtdStart.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ protected function _getElementHtml(AbstractElement $element)
2323
{
2424
$_months = [];
2525
for ($i = 1; $i <= 12; $i++) {
26-
$_months[$i] = $this->_localeDate->date(mktime(null, null, null, $i))->format('m');
26+
$_months[$i] = $this->_localeDate->date(mktime(null, null, null, $i, 1))->format('m');
2727
}
28-
2928
$_days = [];
3029
for ($i = 1; $i <= 31; $i++) {
3130
$_days[$i] = $i < 10 ? '0' . $i : $i;

0 commit comments

Comments
 (0)