From 7611351c663895bc32dd5bd2242fb20c4c5dcf71 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 2 May 2013 15:44:25 +0200 Subject: [PATCH] Suppressed warning for missing php timezone setting --- .../install/files/lib/system/package/PackageArchive.class.php | 2 +- wcfsetup/install/files/lib/util/DateUtil.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); } -- 2.20.1