Hello,

is it possible to use military time-format?

Like:
03:00 - 07:00
04:00 - 18:00

At the moment it is:
3:00 - 7:00
4:00 - 18:00

This is a problem for theming.

Best Regards
Matthias

Comments

johnv’s picture

Component: Documentation » Code
Status: Active » Needs work

ATM this is not possible. Perhaps it should be the default 24-hours display format.
This modification will do the trick:

--- office_hours.theme.inc	(revision 1498)
+++ office_hours.theme.inc	(working copy)
@@ -34,7 +34,7 @@
                     'office_hours_time_range',
                     array(
                       'times'       => $block_times,
-                      'format'      => empty($settings['hoursformat']) ? 'G:i' : 'g:i a',
+                      'format'      => empty($settings['hoursformat']) ? 'H:i' : 'g:i a',
                       'separator'   => $settings['separator_hours_hours'],
                     )
                   );

johnv’s picture

The new option is added with this commit.
There are now 3 options to show a time. So, there is no free-form formatting of the time, yet.

johnv’s picture

Status: Needs work » Fixed
johnv’s picture

Category: support » feature

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.