Moodle

Time display format calendar_site_timeformat does not display 24 hour clock in reports

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.9
  • Fix Version/s: None
  • Component/s: Accessibility, Calendar, General
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

In Administration / Appearance / Calendar a timeformat setting is available: Time display format calendar_site_timeformat
The notice says: You can choose to see times in either 12 or 24 hour format for the whole site. If you choose "default", then the format will be automatically chosen according to the language you use in the site. This setting can be overridden by user preferences.

However, when as Admin I set it to 24 hour, and my language is English, is still see dates displayed with the AM/PM format (which I hate) in Reports (see attached screenshot). This is not what I want.

Moreover, when it says "This setting can be overridden by user preferences." I do not see any setting in my user profile to over-ride time format...

Joseph

Activity

Hide
Steve Bond added a comment -

Same is true of the due dates for activities, e.g. assignments. Times like "12:00PM" cause confusion as some users think that means midnight. An ability to specify 24-hour clock would avoid any confusion.

Show
Steve Bond added a comment - Same is true of the due dates for activities, e.g. assignments. Times like "12:00PM" cause confusion as some users think that means midnight. An ability to specify 24-hour clock would avoid any confusion.
Hide
Eloy Lafuente (stronk7) added a comment -

If I'm not wrong... calendar format only applies to calendar/events times (not to the rest of Moodle).

IMO it would be great to have such a setting, both at site level and, optionally at user level. +1 for that (for Moodle 2.0)

Until then, the only way to fix this is to handle the strftime ( http://php.net/strftime ) formats present in the langconfig.php file in your langs.

Note, if I'm not wrong, you can create one xxxx_local lang directory with that langconfig.php file using your preferred time formats instead of directly changing the "official" langs. That way you could update the official ones without losing your customizations. Also, feel free to comment with your language maintainer about the best way to show dates... it you agree about that... then changes could be in the official lang, I think.

Ciao

Show
Eloy Lafuente (stronk7) added a comment - If I'm not wrong... calendar format only applies to calendar/events times (not to the rest of Moodle). IMO it would be great to have such a setting, both at site level and, optionally at user level. +1 for that (for Moodle 2.0) Until then, the only way to fix this is to handle the strftime ( http://php.net/strftime ) formats present in the langconfig.php file in your langs. Note, if I'm not wrong, you can create one xxxx_local lang directory with that langconfig.php file using your preferred time formats instead of directly changing the "official" langs. That way you could update the official ones without losing your customizations. Also, feel free to comment with your language maintainer about the best way to show dates... it you agree about that... then changes could be in the official lang, I think. Ciao
Hide
Teresa Gibbison added a comment -

+1 to see this as a user option

It would also be good if any activity event displays the relevant time/s as currently (for example) an assignment event is automatically created in the calendar for the due date but it doesn't display the due time. If displayed I would hope this time would be displayed as per the user's calendar preference.

Is there a fix version? I'm hoping for 2.0...
Cheers
Teresa

Show
Teresa Gibbison added a comment - +1 to see this as a user option It would also be good if any activity event displays the relevant time/s as currently (for example) an assignment event is automatically created in the calendar for the due date but it doesn't display the due time. If displayed I would hope this time would be displayed as per the user's calendar preference. Is there a fix version? I'm hoping for 2.0... Cheers Teresa

People

Vote (7)
Watch (7)

Dates

  • Created:
    Updated: