From e0dac90da0bb35297a1642e8b4bc4e9ba60acef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Tue, 30 Mar 2021 12:51:03 +0300 Subject: [PATCH] disable month/year overflow --- app/Utilities/Date.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/Utilities/Date.php b/app/Utilities/Date.php index 11b488275..b169fcd69 100644 --- a/app/Utilities/Date.php +++ b/app/Utilities/Date.php @@ -27,6 +27,22 @@ class Date extends Carbon */ protected static $parseFunction = 'parseWithCurrentLocale'; + /** + * Indicates if months should be calculated with overflow. + * Global setting. + * + * @var bool + */ + protected static $monthsOverflow = false; + + /** + * Indicates if years should be calculated with overflow. + * Global setting. + * + * @var bool + */ + protected static $yearsOverflow = false; + public static function parseWithCurrentLocale($time = null, $timezone = null) { if (is_string($time)) {