php-src/ext/date/tests/date_default_timezone_get-1.phpt
2015-02-27 23:27:09 +01:00

18 lines
269 B
PHP

--TEST--
date_default_timezone_get() function [1]
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == 'WIN') die("skip on windows");
?>
--INI--
date.timezone=
--FILE--
<?php
putenv('TZ=');
echo date_default_timezone_get(), "\n";
echo date('e'), "\n";
?>
--EXPECT--
UTC
UTC