Support serializing time fields.