Date Format in AWPCP

These Adverts help to pay for this site. ai2

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


These Adverts help to pay for this site ai6.

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:


Agoda HolidaysAgoda HolidaysThese Adverts help to pay for this site. ai5

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.


146.1 - 571,475
Scroll down for Comments
0 0 vote
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