|
Heres how to change date and time to US format 1 Year, 6 Months ago
|
|
|
So I hunted on here for a solution for changing the date and time on the forum and I just couldn't find a full answer. Well after hunting through some of the code I found an answer.
If you want to switch the date format and the time to 12 hour am/pm from the military/24 hour format see bellow.
You need to modify two files:
1. English.php (or other language if you are using that file.
The file is located here:
administrator/components/com_fireboard/language/
Change the following lines:
[code:1]DEFINE('_USRL_DATE_FORMAT', '%d.%m.%Y');
DEFINE('_USRL_TIME_FORMAT', '%H:%M');[/code:1]
To:
[code:1]DEFINE('_USRL_DATE_FORMAT', '%m.%d.%Y');
DEFINE('_USRL_TIME_FORMAT', '%I.%M');[/code:1]
Also change:
[code:1]DEFINE('_DATETIME', 'Y/m/d H:i');[/code:1]
To:
[code:1]DEFINE('_DATETIME', 'm/d/Y h:ia');[/code:1]
2. Open fb_timeformat.class.php
Its located here: components/com_fireboard/sources/
Change:
[code:1]$usertime_format = "%d/%m/%Y %H:%M";[/code:1]
To:
[code:1]$usertime_format = "%m/%d/%Y %I:%M";[/code:1]
This seems to have worked for me but as always back up your files. You can see my working forum here:
http://drinkcraftbeer.com/index.php?option=com_fireboard&Itemid=57
|
|
DCB (User)
Junior Boarder
Posts: 58
|
Logged
|
|
|
Last Edit: 2007/06/20 09:57 By DCB.
|
|
|
|
|
|
Re:Heres how to change date and time to US format 1 Year, 6 Months ago
|
|
|
Thanks so much!! I couldn't locate it myself!!
|
|
|
Logged
|
|
|
|
|
|
|
|
|
Re:Heres how to change date and time to US format 1 Year, 6 Months ago
|
|
|
I noticed I missed one thing. I updated my original post for future users, but in the english.php file this is the correct replacement:
Also change:
[code:1]DEFINE('_DATETIME', 'Y/m/d H:i');[/code:1]
To:
[code:1]DEFINE('_DATETIME', 'm/d/Y h:ia');[/code:1]
changing the H:i to h:ia will change the time displayed for individual posts from 24 hour to 12hour time with am or pm after.
|
|
DCB (User)
Junior Boarder
Posts: 58
|
Logged
|
|
|
|
|
|
Re:Heres how to change date and time to US format 1 Year, 3 Months ago
|
|
|
YOU ROCK!
|
|
|
Logged
|
|
|
|
|
|
Re:Heres how to change date and time to US format 11 Months, 3 Weeks ago
|
|
|
Ive had this topic saved to favorites, and worked on every update. Except to 1.0.4 . The file fb_timeformat.class.php does not have the line noted above.
Anyone have a solution?
|
|
|
Logged
|
|
|
|
|
|
Re:Heres how to change date and time to US format 4 Months ago
|
|
|
Hi,
I couldn't find this file fb_timeformat.class.php
Please help.
Thanx.
|
|
misrak (User)
Fresh Boarder
Posts: 1
|
Logged
|
|
|
Last Edit: 2008/09/05 21:32 By misrak.
|
|
|
|
|
|
Re:Heres how to change date and time to US format 4 Months ago
|
|
|
Upgrade. You are still using the original BETA release.
|
|
grinchy (User)
Senior Boarder
Posts: 355
|
Logged
|
|
|
|
|
|