xref: /PHP-7.1/ext/date/tests/bug36599.phpt (revision 5c1dbf51)
1--TEST--
2Bug #36599 (DATE_W3C format constant incorrect).
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7echo date( DATE_ATOM, strtotime( "2006-03-03 08:47:55" ) ), "\n";
8echo date( DATE_W3C,  strtotime( "2006-03-03 08:47:55" ) ), "\n";
9?>
10--EXPECT--
112006-03-03T08:47:55+00:00
122006-03-03T08:47:55+00:00
13