Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Heres how to change date and time to US format (1 viewing) (1) Guest
TOPIC: Heres how to change date and time to US format
#12124
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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/06/20 09:57 By DCB.
 
 
#12304
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!!
The Mc (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: New York Birthdate: 1978-00-00
Logged Logged
 
AntiCulture.Org Forums for the deranged
 
 
#12361
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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#22930
Re:Heres how to change date and time to US format 1 Year, 3 Months ago  
YOU ROCK!
vikingmark (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#39870
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?
oldsteel68 (User)
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#57870
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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/09/05 21:32 By misrak.
 
 
#57873
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
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top