Skip to content

Commit aa92c07

Browse files
committed
AC-12025::DOB issue: leading zero is missing for single digit month
1 parent 5b07b33 commit aa92c07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Dob extends AbstractWidget
2323
/**
2424
* Constants for borders of date-type customer attributes
2525
*/
26-
const MIN_DATE_RANGE_KEY = 'date_range_min';
26+
public const MIN_DATE_RANGE_KEY = 'date_range_min';
2727

28-
const MAX_DATE_RANGE_KEY = 'date_range_max';
28+
public const MAX_DATE_RANGE_KEY = 'date_range_max';
2929

3030
/**
3131
* @var array

app/code/Magento/Customer/Test/Unit/Block/Widget/DobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DobTest extends TestCase
5252
private const YEAR = '2014';
5353

5454
// Value of date('Y', strtotime(self::DATE))
55-
private const DATE_FORMAT = 'M/dd/y';
55+
private const DATE_FORMAT = 'MM/dd/y';
5656

5757
/** Constants used by Dob::setDateInput($code, $html) */
5858
private const DAY_HTML =

0 commit comments

Comments
 (0)