Fix incorrect datetime in API