summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-11-13 15:53:20 (GMT)
committerNathaniel Catchpole2017-11-13 15:53:20 (GMT)
commit72c6aff06eb1b7f34d374a48d4b0b9ddee3dac54 (patch)
treeeff3675ed7e6ae48dc5f575b6a9ae9bea57220fd
parent3f20ff5fbc11988b79665902f5bfc134e2d0191d (diff)
Issue #2920009 by shashikant_chauhan, tedbow, dinarcon, kwhite: Add Change record to @deprecated for Date format changes
-rw-r--r--core/includes/common.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/includes/common.inc b/core/includes/common.inc
index 2c82214..6fc2bcb 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);