xref: /PHP-7.4/ext/date/tests/bug36224.phpt (revision 0249f6b6)
1--TEST--
2Bug #36224 (date(DATE_ATOM) gives wrong resulsts)
3--FILE--
4<?php
5date_default_timezone_set("Europe/Oslo");
6
7echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56Z')) . "\n";
8echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56')) . "\n";
9
10?>
11--EXPECT--
122006-01-31T20:23:56+01:00
132006-01-31T19:23:56+01:00
14