Author Topic: Time Format  (Read 4043 times)

whirls

  • Newbie
  • *
  • Posts: 18
    • View Profile
Time Format
« on: November 09, 2008, 07:29:26 pm »
Is there an option to change the time format displayed on the calendar to 24 hour clock?

At the moment the calendar displays times as 1:00PM rather than 13:00, and then when you go to hover over the event the popup that displays further information displays it as 01:00 which is a little confusing as it drops the PM and now looks like the 24-hour version of 1AM.

Is there a simple time format code that can be changed in one of the files?

Many thanks,

Whirls

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Time Format
« Reply #1 on: November 10, 2008, 10:12:18 am »
Hi, there's no option for this.

I will add the feature request to allow to change this setting.

What I suggest you for the moment is to edit some files so that the tooltip displays the AM PM bit. What you need to edit is files:

    application/views/event/viewweek.php line 453
    application/views/event/viewdate.php line 341
    application/views/event/calendar.php line 311

Change all occurrances of 'h:i' for 'h:i A'.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Time Format
« Reply #2 on: November 10, 2008, 02:36:40 pm »
I forgot application/views/dashboard/index.php line 351 on the list above.

ashberry777

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Time Format
« Reply #3 on: November 11, 2008, 04:48:37 am »
You might want to change that to H:i for 24-hour format

whirls

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Time Format
« Reply #4 on: November 11, 2008, 07:29:38 pm »
Many thanks! You guys rock. That's perfect. :)

Whirls