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     public static function setUpBeforeClass(): void

    {

        self::$timezone = date_default_timezone_get();

        date_default_timezone_set('UTC');



        self::$prevTerminalEmulator = getenv('TERMINAL_EMULATOR');

        putenv('TERMINAL_EMULATOR');
<?php     public static function tearDownAfterClass(): void

    {

        date_default_timezone_set(self::$timezone);

        putenv('TERMINAL_EMULATOR'.(self::$prevTerminalEmulator ? '='.self::$prevTerminalEmulator : ''));

    }
<?php     public static function setUpBeforeClass(): void

    {

        self::$timezone = date_default_timezone_get();

        date_default_timezone_set('UTC');

    }



    public static function tearDownAfterClass(): void
<?php     public static function tearDownAfterClass(): void

    {

        date_default_timezone_set(self::$timezone);

    }



    public function testItOutputsStylesAndScriptsOnFirstDescribeCall()