Skip to content

Commit

Permalink
Fixed a bug with year formatting in Mage_Customer_Block_Widget_Dob
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Oct 23, 2024
1 parent fa31269 commit a6c09d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Customer/Block/Widget/Dob.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getMonth()
*/
public function getYear()
{
return ($this->hasTime()) ? $this->getTime()->format('o') : '';
return ($this->hasTime()) ? $this->getTime()->format('Y') : '';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,5 @@ NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css
<div class="validation-advice" style="display:none;"></div>
</div>
<script type="text/javascript">
//<![CDATA[
var customer_dob = new Varien.DOB('.customer-dob', <?= $this->isRequired() ? 'true' : 'false' ?>, '<?= $this->getDateFormat() ?>');
//]]>
</script>

0 comments on commit a6c09d5

Please sign in to comment.