From e1d99fe87899b169c220e193fe62cf5919949baf Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 19 May 2013 19:14:44 +0200 Subject: [PATCH] Fixed DateUtil issue --- wcfsetup/install/files/lib/util/DateUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index f05dfe7cb0..02893cb30d 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -369,7 +369,7 @@ final class DateUtil { } // convert back to ISO-8601, if date was bogus (e.g. 2000-02-31) data() returns a different date than $date - if (date('Y-m-d', $time) != $date) { + if (gmdate('Y-m-d', $time) != $date) { throw new SystemException("date '".$date."' is invalid"); } } -- 2.20.1