<p class="article__label">
    <strong>News</strong>
    <span> | </span>

    <time class="article__pubdate" itemprop="datePublished" datetime="
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line 10

Call Stack:
    0.0019     278296   1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0
    0.0022     285160   2. eval('?><p class=" article__label ">
  <?php if (!empty($variables['article_type'])): ?>
    <strong><?php print $variables['article_type']; ?></strong>
    <span> | </span>
  <?php endif; ?>

  <?php if (!empty($variables['date'])): ?>
    <time class="article__pubdate "
          itemprop="datePublished "
          datetime="<?php print date( 'Y-m-d', strtotime($variables[ 'date'])); ?>">
          <?php print $variables['date']; ?></time>
    <?php endif; ?>
</p>
') /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20 0.0022 285304 3. strtotime() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code:10 Warning: date():
It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled
the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line 10 Call Stack:
0.0019 278296 1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0 0.0022 285160 2. eval('?>
<p class="article__label">
    <?php if (!empty($variables['article_type'])): ?>
    <strong><?php print $variables['article_type']; ?></strong>
    <span> | </span>
    <?php endif; ?>

    <?php if (!empty($variables['date'])): ?>
    <time class="article__pubdate" itemprop="datePublished" datetime="<?php print date('Y-m-d', strtotime($variables['date'])); ?>">
          <?php print $variables['date']; ?></time>
    <?php endif; ?>
</p>
') /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20 0.0024 286184 3. date() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code:10 2017-04-28"> 28
April 2017</time>
</p>

Description

A block showing an article/entity type and publishing date.


Content notes

UX notes

Design notes

Back-end notes

Front-end notes

{
  "article_type": "News",
  "date": "28 April 2017"
}
  • Handle: @pub-date
  • Preview:
  • Filesystem Path: ../../modules/custom/corp_markup/theme/metadata/pub_date.tpl.php/pub_date.tpl.php