Remove uneccesary date_default_timezone_set calls

refs #4639
This commit is contained in:
Johannes Meyer 2014-04-11 10:32:47 +02:00
parent 6897db63a7
commit f3c87782cb
2 changed files with 0 additions and 8 deletions

View File

@ -82,7 +82,6 @@ class MonitoringPropertiesTest extends BaseTestCase
public function testOutput2() public function testOutput2()
{ {
date_default_timezone_set("UTC");
$host = new HostStruct4Properties(); $host = new HostStruct4Properties();
$host->current_check_attempt = '5'; $host->current_check_attempt = '5';
$host->active_checks_enabled = '1'; $host->active_checks_enabled = '1';

View File

@ -11,13 +11,6 @@ use Icinga\Web\Form\Element\DateTimePicker;
class DateTimeTest extends BaseTestCase 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 * Test that DateTimePicker::isValid() returns false if the input is not valid in terms of being a date/time string
* or a timestamp * or a timestamp