Files
sage/templates/entry-meta.php
Kevin Lisota 878f8607ff fix timezone offset in ISO 8601 date in byline
get_the_time('c') returns the local time in ISO 8601 format, but does
not fetch the GMT timezone offset. This is incorrect. get_post_time is
the correct function here, using the true parameter for GMT
2015-08-03 08:47:22 -07:00

3 lines
275 B
PHP

<time class="updated" datetime="<?= get_post_time('c', true); ?>"><?= get_the_date(); ?></time>
<p class="byline author vcard"><?= __('By', 'sage'); ?> <a href="<?= get_author_posts_url(get_the_author_meta('ID')); ?>" rel="author" class="fn"><?= get_the_author(); ?></a></p>