From 72c6aff06eb1b7f34d374a48d4b0b9ddee3dac54 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Mon, 13 Nov 2017 15:53:20 +0000 Subject: [PATCH] Issue #2920009 by shashikant_chauhan, tedbow, dinarcon, kwhite: Add Change record to @deprecated for Date format changes --- core/includes/common.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index 2c8221424b5..6fc2bcb1200 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -317,10 +317,11 @@ function format_size($size, $langcode = NULL) { * @return * A translated date string in the requested format. * - * @see \Drupal\Core\Datetime\DateFormatter::format() - * * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. * Use \Drupal::service('date.formatter')->format(). + * + * @see \Drupal\Core\Datetime\DateFormatter::format() + * @see https://www.drupal.org/node/1876852 */ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) { return \Drupal::service('date.formatter')->format($timestamp, $type, $format, $timezone, $langcode);