Skip to content

Commit 8467c5c

Browse files
committed
Fix year dependent test
1 parent e51f284 commit 8467c5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/date/tests/bug73426.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Bug #73426 (createFromFormat with 'z' format char results in incorrect time)
44
date.timezone=UTC
55
--FILE--
66
<?php
7-
$date = '12:00:00 15';
8-
$format = 'H:i:s z';
7+
$date = '2016 12:00:00 15';
8+
$format = 'Y H:i:s z';
99
var_dump(DateTime::createFromFormat($format, $date));
1010

11-
$date = '16 12:00:00';
12-
$format = 'z H:i:s';
11+
$date = '16 12:00:00 2016';
12+
$format = 'z H:i:s Y';
1313
var_dump(DateTime::createFromFormat($format, $date));
1414

1515
?>

0 commit comments

Comments
 (0)