October 2017
M T W T F S S
« Jul    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

<!–:en–>Date Format of WordPress Template<!–:–><!–:ja–>WordPressテンプレートの日付書式の変更<!–:–>

We got this blog support mobiles by Carrington Mobile a few months ago.

It shows good in Smartphones and seems nice plugin, but has one problem.

The post date are shown incorrect or broken.

The reason is because the comment date & time processing is not working right.

I found the files and made the date-style “yyyy.mm.dd hh:mi:ss” and they worked.

the modified points are like these:

<p>by <cite><?php comment_author_link() ?></cite> on <a href=”#comment-<?php comment_ID() ?>” title=”"><?php comment_date(“Y.m.d “) ?> <?php comment_time(“H:i:s”) ?></a> <?php edit_comment_link(“e”,”",”"); ?></small></p>

<?php printf(__(“%1$s  eliminate ”at” %2$s”,”atahualpa”), get_comment_date(__(“Y.m.d“,”atahualpa”)),  get_comment_time(__(“H:i:s“,”atahualpa”))) ?>

Some of date functions (get_comment_date, comment_date, date…) don”t work right with other format options or no arguments, I think (* these are related to PHP configuarion,version, and locale, so we can”t always オンライン カジノ say that).

About PHP date format, see here.

This happens in our PC template, Atahualpa too.

About Atahualpa date format bug, see this post too.