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 e9ff1fa commit cea3442Copy full SHA for cea3442
ext/intl/tests/bug74298.phpt
@@ -13,7 +13,7 @@ var_dump((new \IntlDateFormatter(
13
'UTC',
14
\IntlDateFormatter::GREGORIAN,
15
'yyyy-MM-dd HH:mm:ss.SSSSSS'
16
-))->format(new \DateTime('2017-01-01 01:02:03.123456')));
+))->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
17
18
var_dump(datefmt_create(
19
'en-US',
@@ -22,7 +22,7 @@ var_dump(datefmt_create(
22
23
24
25
-)->format(new \DateTime('2017-01-01 01:02:03.123456')));
+)->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
26
?>
27
--EXPECTF--
28
string(26) "2017-01-01T01:02:03.123456"
0 commit comments