Recently I was installing and configuring a wordpress site after a long time. It was a multilingual website. So I started to use qTranslate
I noticed that the time was showing %I:%M %p . A quick google search landed me on wordpress support website. Then to the qTranslate forum. But the thread was a huge one , and I landed on date and time. And then to internationalization date_i18n. So I changed the function
get_comment_time
to something like the one below.
date_i18n(get_option('date_format') ,strtotime($comment->comment_date))
And it works in a charm :) . I came to know that this only happens when you are using qTranslate. Not explored more on it . So happy hacking !


Add new comment