mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
22 lines
321 B
Plaintext
22 lines
321 B
Plaintext
|
--TEST--
|
||
|
Bug #35143 (gettimeofday() ignores current time zone)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
date_default_timezone_set("UTC");
|
||
|
|
||
|
var_dump(date_default_timezone_get());
|
||
|
var_dump(gettimeofday());
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
string(3) "UTC"
|
||
|
array(4) {
|
||
|
["sec"]=>
|
||
|
int(%d)
|
||
|
["usec"]=>
|
||
|
int(%d)
|
||
|
["minuteswest"]=>
|
||
|
int(0)
|
||
|
["dsttime"]=>
|
||
|
int(0)
|
||
|
}
|