Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:[Solved] Date format display (1 viewing) (1) Guest
Go to bottom Favoured: 10
TOPIC: Re:[Solved] Date format display
#47071
Re:[Solved] Date format display 8 Months, 1 Week ago  
FWIW - I have been tasked to change the date format (to "day, mm/dd/yyyy" & "day, mmm dd, yyyy" and the time format (from 24-hour to 12-hour) throughout the forum. I was able to get the intended results by making changes to the following files:

[root]/administrator/components/com_fireboard/language/english.php - lines 49-51 (shown with my changes):
DEFINE('_FB_DT_DATE_FMT','%m/%d/%Y';
DEFINE('_FB_DT_TIME_FMT','%r';
DEFINE('_FB_DT_DATETIME_FMT','%m/%d/%Y %I:%M %p';
(NOTE: lines 52-89 appear to define the names of months and days-of-the-week.)

[root]/language/english.php - lines 422-429 (shown with my changes):
DEFINE('_DATE_FORMAT','l, F d, Y'; //Uses PHP's DATE Command Format - Depreciated
/**
* Modify this line to reflect how you want the date to appear in your site
*
*e.g. DEFINE("_DATE_FORMAT_LC","%A, %d %B %Y %H:%M"; //Uses PHP's strftime Command Format
*/
DEFINE('_DATE_FORMAT_LC',"%A, %B %d, %Y"; //Uses PHP's strftime Command Format
DEFINE('_DATE_FORMAT_LC2',"%A, %B %d, %Y %r";

[root]/components/com_fireboard/template/default/view.php - line 1007 (shown with my changes):
/*$msg_date = date(_DATETIME, $fmessage->time);*/
$msg_date = date('l, m/d/Y h:i A', $fmessage->time);
(NOTE: this was suggested previously in this thread)

[root]/components/com_fireboard/template/default/latestx.php - line 168 (shown with my changes):
echo "" . date('l, m/d/Y h:i A', $latestPostTime) . "";

This has worked for my Forum where dates/times are displayed. The last one (latestx.php) affects the display when clicking "Show Latest Posts".
chozyn (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
      Topics Author Date
 
[Solved] Date format display Favorite
airgasm 2007/04/27 01:45
 
thread linkthread link Re:Date format display
CraigSmith 2007/04/27 02:04
 
thread linkthread link Re:Date format display
airgasm 2007/04/27 05:53
 
thread linkthread linkthread link Re:Date format display
airgasm 2007/05/01 00:40
 
thread linkthread link Re:Date format display
gdwoods 2007/05/01 14:13
 
thread linkthread linkthread link Re:Date format display
umlaut 2007/05/01 14:51
 
thread linkthread linkthread link Re:Date format display
caleb2001r 2007/06/05 03:14
 
thread linkthread linkthread linkthread link Re:Date format display
locii 2007/06/05 03:22
 
thread linkthread linkthread linkthread link Re:Date format display
JLW 2007/06/12 03:16
 
thread linkthread linkthread linkthread linkthread link Re:Date format display
orthanc 2007/06/12 15:51
 
thread linkthread link Re:Date format display
locii 2007/05/26 11:00
 
thread linkthread linkthread link Re:Date format display
locii 2007/05/26 11:28
 
thread linkthread link Re:[Solved] Date format display
boehmtho 2007/10/08 18:44
 
thread linkthread linkthread link Re:[Solved] Date format display
fabs 2007/10/22 18:49
 
thread linkthread link Re:[Solved] Date format display
tescojim 2007/11/24 12:27
 
thread linkthread link Re:[Solved] Date format display
chasuav 2007/12/18 00:14
 
thread linkthread link Re:[Solved] Date format display
chozyn 2008/03/16 01:31
 
thread linkthread linkthread link Re:[Solved] Date format display
jared bonshire 2008/06/04 07:56
 
thread linkthread linkthread linkthread link Re:[Solved] Date format display
bulldogric 2008/09/04 10:51
 
thread linkthread linkthread linkthread linkthread link Re:[Solved] Date format display
giupi 2008/09/24 19:51
 
thread linkthread linkthread linkthread linkthread linkthread link Re:[Solved] Date format display
masterkas 2008/10/30 21:21
Go to top