Date Format in AWPCP


The date format in the WP Plugin AWPCP Classifieds Management System is the American date format m/d/y.

To change to the UK format of d/m/y you need to locate the following code, in the file named: awpcp.php and change it to the replacement code.

Original code:
$awpcpdateformat=__(“m/d/Y”,”AWPCP”);

New code:
$awpcpdateformat=__(“d/M/Y”,”AWPCP”);

This is a temporary fix, and would probably need changing everytime the plugin is upgraded, as any upgrades will renew the awpcp.php file.

Note that I have changed the month letter from a small ‘m’ to a capital ‘M’, this is to avoid the following confusion:

Using “d/m/Y” would show 5/6/2010
That could be taken as saying the 5th of the 6th month, or the 6th of the 5th month.

Using “d/M/Y” it would show as 5/Jun/2010

An easy fix that may as well be done.


175.1 - 811,477
Scroll down for Comments
0 0 votes
Article Rating
Subscribe
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x