We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e51f284 commit 8467c5cCopy full SHA for 8467c5c
ext/date/tests/bug73426.phpt
@@ -4,12 +4,12 @@ Bug #73426 (createFromFormat with 'z' format char results in incorrect time)
4
date.timezone=UTC
5
--FILE--
6
<?php
7
-$date = '12:00:00 15';
8
-$format = 'H:i:s z';
+$date = '2016 12:00:00 15';
+$format = 'Y H:i:s z';
9
var_dump(DateTime::createFromFormat($format, $date));
10
11
-$date = '16 12:00:00';
12
-$format = 'z H:i:s';
+$date = '16 12:00:00 2016';
+$format = 'z H:i:s Y';
13
14
15
?>
0 commit comments