mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- Fixed test - strtotime() uses GMT if no TZ environment variable is set and if
no explicit timezone abbreviation (CEST) or timezone identifier (Europe/Amsterdam) is set.
This commit is contained in:
parent
ebc587846b
commit
eab2cbf494
@ -2,9 +2,9 @@
|
||||
Bug #26198 (strtotime handling of "M Y" and "Y M" format)
|
||||
--FILE--
|
||||
<?php
|
||||
echo date("F Y\n", strtotime("Oct 2001"));
|
||||
echo date("M Y\n", strtotime("2001 Oct"));
|
||||
echo gmdate("F Y (Y-m-d H:i:s T)\n", strtotime("Oct 2001"));
|
||||
echo gmdate("M Y (Y-m-d H:i:s T)\n", strtotime("2001 Oct"));
|
||||
?>
|
||||
--EXPECT--
|
||||
October 2001
|
||||
Oct 2001
|
||||
October 2001 (2001-10-01 00:00:00 GMT)
|
||||
Oct 2001 (2001-10-01 00:00:00 GMT)
|
||||
|
Loading…
Reference in New Issue
Block a user