From 0852c7f7d3bad3877ad70f8ddea3c743e5f84274 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 15 Nov 2018 14:57:15 +0000 Subject: [PATCH] Issue #3008495 by jcnventura: Replace format_date in twig comments --- core/modules/comment/templates/comment.html.twig | 8 ++++---- core/modules/system/templates/time.html.twig | 4 ++-- core/themes/bartik/templates/comment.html.twig | 8 ++++---- core/themes/classy/templates/content/comment.html.twig | 8 ++++---- core/themes/classy/templates/field/time.html.twig | 4 ++-- core/themes/stable/templates/content/comment.html.twig | 8 ++++---- core/themes/stable/templates/field/time.html.twig | 4 ++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/core/modules/comment/templates/comment.html.twig b/core/modules/comment/templates/comment.html.twig index 9587b9b793a..4914421057e 100644 --- a/core/modules/comment/templates/comment.html.twig +++ b/core/modules/comment/templates/comment.html.twig @@ -13,11 +13,11 @@ * {{ content|without('field_example') }} * @endcode * - created: Formatted date and time for when the comment was created. - * Preprocess functions can reformat it by calling format_date() with the - * desired parameters on the 'comment.created' variable. + * Preprocess functions can reformat it by calling DateFormatter::format() + * with the desired parameters on the 'comment.created' variable. * - changed: Formatted date and time for when the comment was last changed. - * Preprocess functions can reformat it by calling format_date() with the - * desired parameters on the 'comment.changed' variable. + * Preprocess functions can reformat it by calling DateFormatter::format() + * with the desired parameters on the 'comment.changed' variable. * - permalink: Comment permalink. * - submitted: Submission information created from author and created * during template_preprocess_comment(). diff --git a/core/modules/system/templates/time.html.twig b/core/modules/system/templates/time.html.twig index 9fc2dfa41a2..93c630ed36f 100644 --- a/core/modules/system/templates/time.html.twig +++ b/core/modules/system/templates/time.html.twig @@ -9,11 +9,11 @@ * attribute value in attributes.datetime. * - text: (optional) The content to display within the