Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:01 pm EDT

Geeklog Forums

24h time format for calendar


tokyoahead

Anonymous
caffeinated
Hi,

I (as someone from europe Big Grin )would liek to have 24hr format of the time. The 12hr AM/PM is confusing if you are not used to it. 12PM should be after or before 11PM?

I guess its not such a big effort to make two different forms and a config.php entry... or is it?

Oliver
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Try these in your config.php:

$_CONF['date'] = '%A, %B %d %Y @ %H:%M %Z';
$_CONF['daytime'] = '%m/%d %H:%M';
$_CONF['timeonly'] = '%H:%M %Z';
 Quote

tokyoahead

Anonymous
I was more talking about the forms to input the date whzen creating a new calendar entry than the display form of already entered dates.

Oliver
 Quote

Luigi

Anonymous
Any help on this?
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
There is $_CONF['hour_mode'] which should do it. Calendar has it's own $_CA_CONF['hour_mode'] for no apparent reason.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That's only available as of Geeklog 1.4.1 (still in beta), though.

bye, Dirk
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Then you can edit COM_getHourFormOptions to create a 24 hour time format (or even steal the 1.4.1 version of COM_getHourFormOptions which already is coded).
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The question was for input in 24 hour format - and that's only available as of 1.4.1 (and it's no small change).

Displaying the time in 24 hour format has always worked, as pointed out earlier in this thread.

bye, Dirk
 Quote

All times are EDT. The time is now 01:01 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content