Skip to content

Commit

Permalink
UIV-1526 add new formatting to prevent wrong year
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Nov 13, 2015
1 parent 749c539 commit 208885b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Period/LargePeriodHTMLFormatter.php
Expand Up @@ -99,7 +99,7 @@ protected function generateDates($date_from, $date_to)
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);
$dateFromString = $date_from;
$dateFrom = strtotime($dateFromString);
Expand Down
2 changes: 1 addition & 1 deletion src/Period/LargePeriodPlainTextFormatter.php
Expand Up @@ -89,7 +89,7 @@ protected function generateDates($date_from, $date_to)
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);
$dateFromString = $date_from;
$dateFrom = strtotime($dateFromString);
Expand Down
2 changes: 1 addition & 1 deletion src/Period/MediumPeriodHTMLFormatter.php
Expand Up @@ -22,7 +22,7 @@ public function format(
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$fmtDay = new IntlDateFormatter(
Expand Down
2 changes: 1 addition & 1 deletion src/Period/MediumPeriodPlainTextFormatter.php
Expand Up @@ -22,7 +22,7 @@ public function format(
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$fmtDay = new IntlDateFormatter(
Expand Down
2 changes: 1 addition & 1 deletion src/Timestamps/LargeTimestampsHTMLFormatter.php
Expand Up @@ -28,7 +28,7 @@ public function __construct()
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$this->fmtWeekDayLong = new IntlDateFormatter(
Expand Down
2 changes: 1 addition & 1 deletion src/Timestamps/LargeTimestampsPlainTextFormatter.php
Expand Up @@ -28,7 +28,7 @@ public function __construct()
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$this->fmtWeekDayLong = new IntlDateFormatter(
Expand Down
2 changes: 1 addition & 1 deletion src/Timestamps/MediumTimestampsHTMLFormatter.php
Expand Up @@ -24,7 +24,7 @@ public function __construct()
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$this->fmtDay = new IntlDateFormatter(
Expand Down
2 changes: 1 addition & 1 deletion src/Timestamps/MediumTimestampsPlainTextFormatter.php
Expand Up @@ -24,7 +24,7 @@ public function __construct()
IntlDateFormatter::FULL,
date_default_timezone_get(),
IntlDateFormatter::GREGORIAN,
'd MMMM Y'
'd MMMM yyyy'
);

$this->fmtDay = new IntlDateFormatter(
Expand Down

0 comments on commit 208885b

Please sign in to comment.