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
This commit is contained in:
Kevin Lisota
2015-08-03 08:47:22 -07:00
parent 8fe7eb29a0
commit 878f8607ff

View File

@@ -1,2 +1,2 @@
<time class="updated" datetime="<?= get_the_time('c'); ?>"><?= get_the_date(); ?></time>
<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>