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
3 lines
275 B
PHP
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>
|