Odd date issue
-
I recently upgraded from MT to WordPress and I love it. I am slowly but surely getting accustomed to the ins and outs of the code behind the magic and have changed the comments code to the following:
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<cite><?php comment_type(); ?> by <?php comment_author_link() ?> — "><
?php the_time("l, F jS, Y @ g:i a") ?> <?php edit_comment_link('Edit This', ' |'); ?></cite><?php } // end for each comment ?>
<?php } else { // this is displayed if there are no comments so far ?>
No comments yet.
<?php } ?>
Now, the odd part is that as of this past Saturday (Apr 4, 2004), the date reflected on each of the comments goes with the day that the entry was created. Even if the commenter added a comment on another day. Like a few comments were added today (Apr 7, 2004) but it’s reflecting Sunday’s date. I imagine it’s the function “the_time” which is causing this just pikcing out the date that the entry was created. Is there a way for it to grab the date the comment itself was created? I must admit, I am a bit of a n00b when it comes to PHP so please pardon my ignorance in this matter.
The page in question is located at https://memoirsofageek.com/
- The topic ‘Odd date issue’ is closed to new replies.