How can I change the date format of my forum entries?

Requested and Answered by Tedsmith on 2006/12/1 18:22:43

How can I change the date format of my forum entries?

The default date format of CBB is currently the US style of month\day, for example, the 15th January 2006 is, by default, 01/15.

If your country adopts an alternative style, you may want to change this. For example, in the UK, the date format is Day\Month\Year.

To adjust it, edit Frameworks/xoops22/language/english/user.php (or if you use an alternative language choose accordingly) as follows :

Change lines 15-18 from :

define("_TODAY""Today G:i");

define("_YESTERDAY""Yes\te\rday G:i");

define("_MONTHDAY""[b]n/j[/b] G:i");

define("_YEARMONTHDAY""[b]Y/n/j[/b] G:i");


to

define("_TODAY""Today G:i");

define("_YESTERDAY""Yes\te\rday G:i");

define("_MONTHDAY", [b]"d/m/y[/b] G:i");

define("_YEARMONTHDAY""[b]d/m/y[/b] G:i");


or to whatever choosing you require in line with the PHP specification http://uk.php.net/date

If that does not work, check that you do not have values that overide the one's above in either of these two files :

XOOPS_ROOT/modules/newbb/language/english/main.php or XOOPS_ROOT/language/english/global.php

For further info see this thread

Ted

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=645