Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11094

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

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_25_STABLE, MOODLE_311_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
    • Testing Instructions:
      Hide

      As admin:

      1. go to site admin > advance features, set 'site_timeformat' to 12 hrs
      2. go to view profile page and notice that the access time is in 12 hours format

      As student:

      1. edit the profile page and set time format to 24 hours.
      2. view the profile page and notice that the access time is in 24 hours format

      As either user, visit the forum discussion and make sure the timeformat is showing in the correct format for the user.

      Show
      As admin: go to site admin > advance features, set 'site_timeformat' to 12 hrs go to view profile page and notice that the access time is in 12 hours format As student: edit the profile page and set time format to 24 hours. view the profile page and notice that the access time is in 24 hours format As either user, visit the forum discussion and make sure the timeformat is showing in the correct format for the user.

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rezeau Joseph Rézeau
              Peer reviewer:
              Ankit Agarwal Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              14 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated: