- Posts: 6
- Thank you received: 0
Kunena 6.2.6 released
The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2
Question Time zone question
How do I set the kunena forums to be on the 12 hr clock system? Right now, it's on the 24 hr clock.
Also, the server I use is located in Texas which uses CST, and the site we're hosting these boards on is mainly targeted at folks in PA which uses EST.
So how do I set the boards up to use the 12hr time format and have it so the time will properly display EST with the server being located in the CST?
-Andrew
Please Log in or Create an account to join the conversation.
search for the line
DEFINE('_USRL_TIME_FORMAT', '%H:%M');
well, in PHP generally, it should be changed to something similar to
h:i:s A
where
h = hour with leading zero if needed (e.g. 06 for six O'Clock)
i = minute with leading zero if needed
s = seconds
A = AM or PM according to the time being displayed in capital letters.
I don't know I Kunena needs a different syntax, but it is just my 2 cents
Please Log in or Create an account to join the conversation.
fi.php.net/manual/en/function.strftime.php
Please Log in or Create an account to join the conversation.
to use the 12 hr time format, i think you need to change it in the language file
search for the line
DEFINE('_USRL_TIME_FORMAT', '%H:%M');
well, in PHP generally, it should be changed to something similar to
h:i:s A
where
h = hour with leading zero if needed (e.g. 06 for six O'Clock)
i = minute with leading zero if needed
s = seconds
A = AM or PM according to the time being displayed in capital letters.
I don't know I Kunena needs a different syntax, but it is just my 2 cents
I think I edited the proper file..is it the language file found at this path?
administrator/components/com_kunena/language
I changed this line:
DEFINE('_USRL_TIME_FORMAT', '%H:%M');
to read:
DEFINE('_USRL_TIME_FORMAT', '%I:%M:%S %p');
I uploaded it, overwrote it and then refreshed the forums and it's still showing up in military time.
Please Log in or Create an account to join the conversation.
DEFINE('_KUNENA_DT_MONTHDAY_FMT','%m/%d');
DEFINE('_KUNENA_DT_DATE_FMT','%m/%d/%Y');
DEFINE('_KUNENA_DT_TIME_FMT','%H:%M');
DEFINE('_KUNENA_DT_DATETIME_FMT','%m/%d/%Y %H:%M');
DEFINE('_USRL_DATE_FORMAT', '%m/%d/%Y');
DEFINE('_USRL_TIME_FORMAT', '%H:%M');
I believe that the last two are not used anymore.
PS. Kunena 1.0.10 fixes some bugs in time formating.
Please Log in or Create an account to join the conversation.