1
tedsmith
CBB 1.12 Date Format
  • 2005/8/6 9:18

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


On a new site I am creating the CBB post dates show like this :
Posted on7/8 20:19:24


I want it to show like "01/01/05" or "01/1/05" or something like that.

I've changed my global settings in language\global.php and the dates for the rest of the site are just how I want them, but in CBB they show as above which is not what I want. I've looked in System Prefs and I can't see anything to adjust the date format.

Can anyone help? I use XOOPS 2.0.13

Thanks

Ted

2
blueteen
Re: CBB 1.12 Date Format
  • 2005/8/6 11:47

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


in modules/newbb/language/english/main.php

near line 414

// !!IMPORTANT!! insert '' to any char among reserved chars: "a", "A","B","c","d","D","F","g","G","h","H","i","I","j","l","L","m","M","n","O","r","s","S","t","T","U","w","W","Y","y","z","Z"    
// insert additional '' to 't', 'r', 'n'
define("_MD_TODAY""Today G:i:s");
define("_MD_YESTERDAY""Yes\te\rday G:i:s");
define("_MD_MONTHDAY""n/j G:i:s");
define("_MD_YEARMONTHDAY""Y/n/j G:i");


change n/j to j/n/Y for exemple.
(08/07 to 07/08/2005)

look athttp://www.php.net/date for others parameters.

3
tedsmith
Re: CBB 1.12 Date Format
  • 2005/8/6 13:39

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Thanks Blueteen - that has worked just right. I didn't realise there was a main.php file in there (I can be a fool!).

Cheers

Ted

Login

Who's Online

145 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits