1

Whenever someone comments on a post at the blog i am hosting (wordpress 2.9.2) the date of the comment shows as "%Y/%m/%d kl %H:%M".

I have tried to fix this, but i cant get the blog to interpret the code and put it out as the real dates and the time.

How can i fix this?

2 Answers 2

2

Looks like the tag for the_time in your template file is incomplete. Should be something like this:

<?php the_time('F jS, Y') ?>

If needed, see Template Tags/the time « WordPress Codex for more on formatting.

0

This is how MySQL handles dates, so a query string isn't getting processed correctly somewhere. If you can post some code or more detail, perhaps I/someone else can give you a more definitive answer.

1
  • I think i have managed to localize the part where it goes badly. I only have trouble with the dates in comments from people. In the comments.php file in my theme there is a block of code wich looks like: <div class="commentlist"> <?php wp_list_comments(array('avatar_size'=>64, reply_text'=>'Comment this')); ?> </div> I assume this tells wordpress to grab all comments on this certain post and list them. The code that is produced by this on a single comment at my site looks like: <div class="commentlist"> [stuff] <a class="some Classes" href="adress">%Y/%m/%d kl %H:%M</a> [stuff] </div>
    – user212891
    Mar 2, 2010 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.