Skip to content

Loading…

Fixed datetime of posts #68

Closed
wants to merge 1 commit into from

2 participants

@aiham

I changed the date() function in meta.php to the_time() function because it was setting the time to the current datetime rather than the post's datetime.

@ckhicks
Collaborator

Including these changes in the latest release - thank you for the assist!

@ckhicks ckhicks closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 13, 2012
  1. @aiham

    Fixed the datetime of a post being generated from the date() function…

    aiham committed
    … to the the_time() function
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 _/inc/meta.php
View
4 _/inc/meta.php
@@ -1,7 +1,7 @@
<footer class="meta">
- <i>Posted on:</i> <time datetime="<?php echo date(DATE_W3C); ?>" pubdate class="updated"><?php the_time('F jS, Y') ?></time>
+ <i>Posted on:</i> <time datetime="<?php echo the_time(DATE_W3C); ?>" pubdate class="updated"><?php the_time('F jS, Y') ?></time>
<span class="byline author vcard">
<i>by</i> <span class="fn"><?php the_author() ?></span>
</span>
<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?>
-</footer>
+</footer>
Something went wrong with that request. Please try again.