Skip to content

Commit 1762d83

Browse files
authored
Fixes passing null as 1st parameter to mktime() (#2938)
1 parent c493d43 commit 1762d83

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field

1 file changed

+1
-1
lines changed

app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
3333
$_months = [];
3434
for ($i = 1; $i <= 12; $i++) {
3535
$_months[$i] = Mage::app()->getLocale()
36-
->date(mktime(null, null, null, $i))
36+
->date(mktime(0, null, null, $i))
3737
->get(Zend_Date::MONTH_NAME);
3838
}
3939

0 commit comments

Comments
 (0)