Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question How to change date format?

More
16 years 10 months ago #22400 by zimmer79
Hi guys. I've just edited the code in message.php, so it displays the actual post time and date, rather than "5 hours ago" or whatever.

The problem is the date uses the US style e.g YYYY/MM/DD. That is quite confusing for some British users who are used to YYYY/DD/MM or even DD/MM/YYYY.

Any ideas how to change?

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago - 16 years 10 months ago #22401 by xillibit
Hello,

You can the date format in the language file, with this by example, I think the dates which is displayed in your file message.php use this :
Code:
_KUNENA_DT_DATE_FMT _KUNENA_DT_TIME_FMT _KUNENA_DT_DATETIME_FMT

I don't provide support by PM, because this can be useful for someone else.
Last edit: 16 years 10 months ago by xillibit.

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #22544 by zimmer79
Hi, thanks for that. I also found this link which has some more complete instructions, including files changes. Still haven't had a chance to test out either method yet but looks good.

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #22936 by zimmer79
Hi, just got round to trying this out.

Unfortunately I couldn't get either method to work properly.

I couldn't find the relevant line of code in message.php. I assume you're referring to template/default/message.php?



I also tried the second method I linked to: this only changed the date format in the "Last Post" column, and not the date in the message.

Any help appreciated.

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #22979 by xillibit
In the file components/com_kunena/template/yourtemplate/message.php, at line 77 replace this, check in kunena.english.php if the constant _KUNENA_DT_DATE_FMT is correct :
Code:
<span class = "<?php echo $msgtitle; ?>"><?php echo $msg_subject; ?> </span> <span class = "msgdate" title="<?php echo $msg_date; ?>"><?php echo $msg_time_since; ?></span>

by this :
Code:
<span class = "<?php echo $msgtitle; ?>"><?php echo $msg_subject; ?> </span> <span class = "msgdate" title="<?php echo $msg_date; ?>"><?php echo strftime(_KUNENA_DT_DATE_FMT,$fmessage->time); ?></span>

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #23006 by zimmer79
Thanks a lot...I've got that working.

Unfortunately the "Last Post" column is still showing the time in the original format.

I've had a look around and I'm pretty sure I need to do something around line 396 in components/com_kunena/template/default/listcat.php

but I just can't figure out what I should be doing.

Please Log in or Create an account to join the conversation.

Time to create page: 0.603 seconds