api: force returned timestamps to integer