Removed dateToInt constrained for year

This commit is contained in:
Frank Schubert
2021-11-16 11:27:25 +01:00
parent f3b5aaa9f6
commit ae90a8a2c3

View File

@@ -29,8 +29,7 @@ class Layout extends mfLayout {
$year = intval($m[3]);
if($day > 31 || $day < 1
|| $month > 12 || $month < 1
|| $year > date('Y')+1 || $year < date('Y'))
|| $month > 12 || $month < 1)
{
return false;
}
@@ -43,4 +42,4 @@ class Layout extends mfLayout {
public static function intToDate($int) {
return date("d.m.Y", $int);
}
}
}