mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
16 lines
287 B
PHP
16 lines
287 B
PHP
--TEST--
|
|
date_default_timezone_get() function [3]
|
|
--INI--
|
|
date.timezone=
|
|
--FILE--
|
|
<?php
|
|
putenv('TZ=Europe/Rome');
|
|
echo date_default_timezone_get(), "\n";
|
|
|
|
date_default_timezone_set("America/Chicago");
|
|
echo date_default_timezone_get(), "\n";
|
|
?>
|
|
--EXPECT--
|
|
Europe/Rome
|
|
America/Chicago
|