Fix #1268 REST API formats date as datetime