From: Marcel Werk Date: Sun, 19 May 2013 17:14:44 +0000 (+0200) Subject: Fixed DateUtil issue X-Git-Tag: 2.0.0_Beta_1~145 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1d99fe87899b169c220e193fe62cf5919949baf;p=GitHub%2FWoltLab%2FWCF.git Fixed DateUtil issue --- 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"); } }