changed time fields to timestamp