rest-api: fix date