Help with time & date settings

jdab

Madly Diligent
Joined
Aug 29, 2010
Messages
9,642
Reaction score
1
FP$
21
Basically I have my forum in 'Classic' view, but sometimes the time/date of the post stretches the box. Is there a way I can make all the posts have a layout like this:

"DD/MM/YY HH/MM"

Rather than "Wednesday, 13th June, 2012 19:00" etc?
 
I know a way of fixing that however, my method would require core edits to the software which can create issues when you want to upgrade the forums.
 
SpeakWhatsReal said:
I think mybb uses date function from php for that.

Just check here : http://us2.php.net/manual/en/function.date.php

And make it so it fits your format.

Example:

March 23rd 2012
would be

F j o

Hope this helps 😉
MyBB doesn't use the PHP date() function directly, there's a whole library aka adodb ontop of it to circumvent it's limitations, from what I saw.

http://php.net/manual/en/function.date.php
You can edit inc/functions.php on line 316 and add $format = ""; with the format you wish based on the date() format in between ""s.
 
Back
Top Bottom