Skip to content

Commit aeff22d

Browse files
erics86fabpot
authored andcommitted
[FrameworkBundle] [HttpKernel] fixed correct EOL and EOM month
* Added a hardcoded day 01 in order to output the proper month November which is the correct EOL and EOM month. * \DateTime::createFromFormat('mY') will output December for every month where day 31 exists.
1 parent f9f431f commit aeff22d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/AboutCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private static function formatFileSize($path)
123123

124124
private static function isExpired($date)
125125
{
126-
$date = \DateTime::createFromFormat('m/Y', $date);
126+
$date = \DateTime::createFromFormat('d/m/Y', '01/'.$date);
127127

128128
return false !== $date && new \DateTime() > $date->modify('last day of this month 23:59:59');
129129
}

0 commit comments

Comments
 (0)