format timestamps in api