Skip to content

Commit 9af1457

Browse files
author
Stanislav Idolov
authored
ENGCOM-2764: [Backport] Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289 #17496
2 parents 227acb8 + 30aed0d commit 9af1457

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)