mirror of
https://github.com/php/php-src.git
synced 2024-10-18 23:12:35 +00:00
31 lines
423 B
Plaintext
31 lines
423 B
Plaintext
![]() |
--TEST--
|
||
|
Bug #35425 (idate() function ignores timezone settings)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
putenv('TZ=America/Montreal');
|
||
|
|
||
|
$time = mktime(1,1,1,1,1,2005);
|
||
|
foreach (array('B','d','h','H','i','I','L','m','s','t','U','w','W','y','Y','z','Z') as $v) {
|
||
|
var_dump(idate($v, $time));
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(292)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(0)
|
||
|
int(0)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(31)
|
||
|
int(1104559261)
|
||
|
int(6)
|
||
|
int(53)
|
||
|
int(5)
|
||
|
int(2005)
|
||
|
int(0)
|
||
|
int(-18000)
|