Unverified Commit f00c547e authored by Dave Reid's avatar Dave Reid
Browse files

Replaced format_date() with \Drupal::service('date.formatter')->format().

parent e49ad5b6
......@@ -125,7 +125,7 @@ function xmlsitemap_requirements($phase) {
$requirements['xmlsitemap_generated'] = [
'title' => $t('XML sitemap'),
'value' => $generated_last ? $t('Last attempted generation on @date (@interval ago).', [
'@date' => format_date($generated_last, 'small'),
'@date' => \Drupal::service('date.formatter')->format($generated_last, 'small'),
'@interval' => \Drupal::service('date.formatter')->formatInterval($generated_ago),
]) : $t('Cached files have not been generated yet.'),
'severity' => REQUIREMENT_OK,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment