![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #38229 (strtotime() does not parse YYYY-MM) 3: --FILE-- 4: <?php 5: date_default_timezone_set("GMT"); 6: echo date("Y-m", strtotime('2006-1'))."\n"; 7: echo date("Y-m", strtotime('2006-03'))."\n"; 8: echo date("Y-m", strtotime('2006-12'))."\n"; 9: ?> 10: --EXPECT-- 11: 2006-01 12: 2006-03 13: 2006-12