From f3c87782cb1d5eacf48ec4687ab1d0de8191ab6b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 11 Apr 2014 10:32:47 +0200 Subject: [PATCH] Remove uneccesary date_default_timezone_set calls refs #4639 --- .../application/views/helpers/MonitoringPropertiesTest.php | 1 - .../library/Icinga/Web/Form/Element/DateTimePickerTest.php | 7 ------- 2 files changed, 8 deletions(-) diff --git a/modules/monitoring/test/php/application/views/helpers/MonitoringPropertiesTest.php b/modules/monitoring/test/php/application/views/helpers/MonitoringPropertiesTest.php index 32311e28d..e602e0237 100644 --- a/modules/monitoring/test/php/application/views/helpers/MonitoringPropertiesTest.php +++ b/modules/monitoring/test/php/application/views/helpers/MonitoringPropertiesTest.php @@ -82,7 +82,6 @@ class MonitoringPropertiesTest extends BaseTestCase public function testOutput2() { - date_default_timezone_set("UTC"); $host = new HostStruct4Properties(); $host->current_check_attempt = '5'; $host->active_checks_enabled = '1'; diff --git a/test/php/library/Icinga/Web/Form/Element/DateTimePickerTest.php b/test/php/library/Icinga/Web/Form/Element/DateTimePickerTest.php index dd4843bb0..6bc961316 100644 --- a/test/php/library/Icinga/Web/Form/Element/DateTimePickerTest.php +++ b/test/php/library/Icinga/Web/Form/Element/DateTimePickerTest.php @@ -11,13 +11,6 @@ use Icinga\Web\Form\Element\DateTimePicker; class DateTimeTest extends BaseTestCase { - public function setUp() - { - // Set default timezone else new DateTime calls will die with the Exception that it's - // not safe to rely on the system's timezone - date_default_timezone_set('UTC'); - } - /** * Test that DateTimePicker::isValid() returns false if the input is not valid in terms of being a date/time string * or a timestamp