Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / security_review / security_review.module
index cd640f6a3a4eea570622bfff160bb8b1bedc341a..508f6253412566511383fec66b7ca19d886ecd32 100644 (file)
@@ -135,7 +135,7 @@ function template_preprocess_run_and_review(&$variables) {
   }
 
   // Format date.
-  $variables['date'] = format_date($variables['date']);
+  $variables['date'] = \Drupal::service('date.formatter')->format($variables['date']);
 
   // Convert check result integers to strings.
   foreach ($variables['checks'] as &$check) {