From: Marcel Werk Date: Thu, 2 May 2013 13:44:25 +0000 (+0200) Subject: Suppressed warning for missing php timezone setting X-Git-Tag: 2.0.0_Beta_1~266 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7611351c663895bc32dd5bd2242fb20c4c5dcf71;p=GitHub%2FWoltLab%2FWCF.git Suppressed warning for missing php timezone setting --- diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index 22619bc15f..4355b2b625 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -209,7 +209,7 @@ class PackageArchive { case 'date': DateUtil::validateDate($element->nodeValue); - $this->packageInfo['date'] = strtotime($element->nodeValue); + $this->packageInfo['date'] = @strtotime($element->nodeValue); break; } } diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index 5234da5bd2..f05dfe7cb0 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -363,7 +363,7 @@ final class DateUtil { } // try to convert $date into a UNIX timestamp - $time = strtotime($date); + $time = @strtotime($date); if ($time === false) { throw new SystemException("date '".$date."' is invalid"); }