Suppressed warning for missing php timezone setting
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 May 2013 13:44:25 +0000 (15:44 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 May 2013 13:44:25 +0000 (15:44 +0200)
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/util/DateUtil.class.php

index 22619bc15f5026da393e76a0ebb3533a8e407f8d..4355b2b625c3947e41fb6e66b1f7008d1ce36c3e 100644 (file)
@@ -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;
                        }
                }
index 5234da5bd2959de756b25bf28935456694baabde..f05dfe7cb0d982f867dc9b095042ddb72a88eade 100644 (file)
@@ -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");
                }