date_default_timezone_set

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Sets the default timezone used by all date/time functions in a script
<?php date_default_timezone_set(string $timezoneId): bool
<?php     protected function tearDown(): void

    {

        date_default_timezone_set($this->currentTimezone);

    }



    public function testDateConvertsToDatabaseValue(): void
<?php     public function testDateRestsSummerTimeAffection(): void

    {

        date_default_timezone_set('Europe/Berlin');



        $date = $this->type->convertToPHPValue('2009-08-01', $this->platform);

        self::assertEquals('00:00:00', $date->format('H:i:s'));