Updated patch for views_date_format_sql