xref: /PHP-7.1/ext/date/tests/bug38229.phpt (revision af48ecfc)
1--TEST--
2Bug #38229 (strtotime() does not parse YYYY-MM)
3--FILE--
4<?php
5date_default_timezone_set("GMT");
6echo date("Y-m", strtotime('2006-1'))."\n";
7echo date("Y-m", strtotime('2006-03'))."\n";
8echo date("Y-m", strtotime('2006-12'))."\n";
9?>
10--EXPECT--
112006-01
122006-03
132006-12
14