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

More
14 years 10 months ago #1 by parev
Time zone question was created by parev
Didn't find anything new through the search so I'll ask.

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.

More
14 years 10 months ago #2 by TrueFact
Replied by TrueFact on topic Re:Time zone question
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 :)

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

More
14 years 10 months ago #3 by Matias
Replied by Matias on topic Re:Time zone question
Kunena uses syntax from PHP strftime():
fi.php.net/manual/en/function.strftime.php

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

More
14 years 10 months ago #4 by parev
Replied by parev on topic Re:Time zone question
TrueFact wrote:

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.

More
14 years 10 months ago #5 by Matias
Replied by Matias on topic Re:Time zone question
There are many different translation strings to handle timeformat in different places:

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.

Time to create page: 0.396 seconds