diff --git a/core/includes/common.inc b/core/includes/common.inc index c4e6d0d..af3dece 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -1546,7 +1546,7 @@ function format_interval($interval, $granularity = 2, $langcode = NULL) { * A translated date string in the requested format. */ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) { - return Drupal::service('format_date')->format($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL); + return Drupal::service('format_date')->format($timestamp, $type, $format, $timezone, $langcode); } /**