File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ foreach ($strings as $string) {
1212 echo "\nCovering string: " , addslashes ($ string ), "\n\n" ;
1313
1414 try {
15- $ d1 = DateTime::createFromFormat ('m/d/Y ' , $ string );
15+ $ d1 = DateTime::createFromFormat ('! m/d/Y ' , $ string );
1616 } catch (ValueError $ v ) {
1717 echo $ v ->getMessage (), "\n" ;
1818 }
1919
2020 try {
21- $ d2 = DateTimeImmutable::createFromFormat ('m/d/Y ' , $ string );
21+ $ d2 = DateTimeImmutable::createFromFormat ('! m/d/Y ' , $ string );
2222 } catch (ValueError $ v ) {
2323 echo $ v ->getMessage (), "\n" ;
2424 }
@@ -37,15 +37,15 @@ Covering string: 8/8/2016
3737
3838object(DateTime)#1 (3) {
3939 ["date"]=>
40- string(26) "2016-08-08 13:52:31 .000000"
40+ string(26) "2016-08-08 00:00:00 .000000"
4141 ["timezone_type"]=>
4242 int(3)
4343 ["timezone"]=>
4444 string(3) "UTC"
4545}
4646object(DateTimeImmutable)#2 (3) {
4747 ["date"]=>
48- string(26) "2016-08-08 13:52:31 .000000"
48+ string(26) "2016-08-08 00:00:00 .000000"
4949 ["timezone_type"]=>
5050 int(3)
5151 ["timezone"]=>
You can’t perform that action at this time.
0 commit comments