Hello!
I have a little problem (I applied some hack related to hours, so I don't know if this must be here or in Hacks Forum, sorry):
Into my forum, the hour are correctly displayed, but in the index, they aren't. There, the hour is 3 hours less than in rest of forum and I was wondering if it possible to increase the hour +3.
I have set it by this way (All files are in \components\com_kunena\template\default_ex) (caution with "10800" in files; 10800 seconds are 3 hours) :
flat.php
line 337 replace this :
Code:
<span class="topic_posted_time"><?php echo _KUNENA_POSTED_AT ?> <?php echo time_since($leaf->time,time() + ($fbConfig->board_ofset * 3600)); ?> <?php echo _KUNENA_AGO ?>
by this :
Code:
<span class="topic_posted_time"><?php echo _KUNENA_POSTED_AT ?> <?php echo strftime(_KUNENA_DT_DATETIME_FMT,$leaf->time + 10800); ?>
listcat.php
line 235 this:
Code:
$lastptime = KUNENA_timeformat(CKunenaTools::fbGetShowTime($singlerow->time_last_msg));
by this:
Code:
$lastptime = KUNENA_timeformat(CKunenaTools::fbGetShowTime($singlerow->time_last_msg + 10800));
message.php
line 223 replace this :
Code:
$msg_time_since = str_replace('%time%', time_since($fmessage->time, CKunenaTools::fbGetInternalTime()), $msg_time_since);
by this :
Code:
$msg_time_since = strftime(_KUNENA_DT_DATETIME_FMT,$fmessage->time + 10800);
line 331 (to correct edit date):
Code:
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
by this
Code:
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time + 10800) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
(see
www.kunena.com/forum/144-k-15-hacks-tric...lay-of-posting#29821
)
Thank you!!!