JSON API: fix date format issue

we cannot use the getTimestamp() method because it is not supported in
PHP < 5.3.  Instead we'll use strtotime()

Fix issue #1326