Skip to content

Commit 80b41cf

Browse files
teddysieronak2ram
authored andcommitted
Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289
1 parent 227acb8 commit 80b41cf

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

+1-2
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)