Skip to content

Commit

Permalink
Fixes passing null as 1st parameter to mktime() (#2938)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and fballiano committed Jan 15, 2023
1 parent cd3717a commit 848ddd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
$_months = [];
for ($i = 1; $i <= 12; $i++) {
$_months[$i] = Mage::app()->getLocale()
->date(mktime(null, null, null, $i))
->date(mktime(0, null, null, $i))
->get(Zend_Date::MONTH_NAME);
}

Expand Down

0 comments on commit 848ddd9

Please sign in to comment.