Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / datetime / src / Plugin / Field / FieldFormatter / DateTimeTimeAgoFormatter.php
index 3fc315761674b7fd18b37004285545aae4393eb1..782e1b85472c246540d9970ea1478c7b28795c5a 100644 (file)
@@ -110,10 +110,6 @@ class DateTimeTimeAgoFormatter extends FormatterBase implements ContainerFactory
       $date = $item->date;
       $output = [];
       if (!empty($item->date)) {
-        if ($this->getFieldSetting('datetime_type') == 'date') {
-          // A date without time will pick up the current time, use the default.
-          datetime_date_default_time($date);
-        }
         $output = $this->formatDate($date);
       }
       $elements[$delta] = $output;