diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 9a0d713..45b2642 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -3000,9 +3000,9 @@ function drupal_common_theme() { 'render element' => 'elements', 'template' => 'region', ), - 'datetime' => array( + 'time' => array( 'variables' => array('timestamp' => NULL, 'text' => NULL, 'attributes' => array(), 'html' => FALSE), - 'template' => 'datetime', + 'template' => 'time', ), 'status_messages' => array( 'variables' => array('display' => NULL), diff --git a/core/modules/aggregator/aggregator.pages.inc b/core/modules/aggregator/aggregator.pages.inc index e364aee..7b684e8 100644 --- a/core/modules/aggregator/aggregator.pages.inc +++ b/core/modules/aggregator/aggregator.pages.inc @@ -192,7 +192,7 @@ function template_preprocess_aggregator_summary_item(&$variables) { ), )); $variables['age'] = array( - '#theme' => 'datetime', + '#theme' => 'time', '#attributes' => array( 'datetime' => format_date($item->getPostedTime(), 'html_datetime', '', 'UTC'), 'class' => array('feed-item-age',), diff --git a/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php b/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php index 1a235dc..36ba8a4 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php +++ b/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php @@ -118,7 +118,7 @@ public function viewElements(FieldItemListInterface $items) { // Display the date using theme datetime. // @todo How should RDFa attributes be added to this? $elements[$delta] = array( - '#theme' => 'datetime', + '#theme' => 'time', '#text' => $formatted_date, '#html' => FALSE, '#attributes' => array( diff --git a/core/modules/system/templates/datetime.html.twig b/core/modules/system/templates/datetime.html.twig deleted file mode 100644 index 25ef788..0000000 --- a/core/modules/system/templates/datetime.html.twig +++ /dev/null @@ -1,29 +0,0 @@ -{# -/** - * @file - * Default theme implementation for a date / time element. - * - * Available variables - * - timestamp: (optional) A UNIX timestamp for the datetime attribute. If the - * datetime cannot be represented as a UNIX timestamp, use a valid datetime - * attribute value in attributes.datetime. - * - text: (optional) The content to display within the