mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
14 lines
278 B
Plaintext
14 lines
278 B
Plaintext
|
--TEST--
|
||
|
Bug #38229 (strtotime() does not parse YYYY-MM)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
date_default_timezone_set("GMT");
|
||
|
echo date("Y-m", strtotime('2006-1'))."\n";
|
||
|
echo date("Y-m", strtotime('2006-03'))."\n";
|
||
|
echo date("Y-m", strtotime('2006-12'))."\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
2006-01
|
||
|
2006-03
|
||
|
2006-12
|