private void normalizeDate(ContentValues values) {
   // normalize the date value
   if (values.containsKey(WeatherContract.WeatherEntry.COLUMN_DATE)) {
     long dateValue = values.getAsLong(WeatherContract.WeatherEntry.COLUMN_DATE);
     values.put(
         WeatherContract.WeatherEntry.COLUMN_DATE, WeatherContract.normalizeDate(dateValue));
   }
 }