strtotime() PHPのバージョンによっては"Y-m"が通じない

詳しくバージョン調べてないけど、ローカルとサーバーでは動きに違いがあった。

NG!

...
$r_date = date("Y-m",$timestamp);
$result = strtotime(r_date)
...

OK

...
$r_date = date("Y-m-d",$timestamp);
$result = strtotime(r_date)
...