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

html_writer::select_time does not respect the calendar type plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.9, 2.7.10, 2.7.11, 2.8.7, 2.8.8, 2.8.9, 2.9.1, 2.9.2, 2.9.3, 3.0
    • 2.9.4, 3.0.2
    • Forms Library
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-52354-master
    • Hide
      1. Install a new calendar type plugin (for example the Persian calendar)
      2. Update you profile and use the installed calendar as your preferred calendar
      3. Create a database activity module in a course and add a "date" type field to it
      4. Visit the add entry page of the database. The date field created earlier should be displayed correctly (ref: )
      5. Visit the "view list" page of the database and select the advanced search check box
      6. The date fields of the search form should be displayed correctly (ref: )
      7. Create a forum activity in a course and go to the forum you created
      8. Click on the "Search forums" button at top right to go to the advanced search page
      9. The date fields of the search form should be displayed correctly (ref: )
      Show
      Install a new calendar type plugin (for example the Persian calendar ) Update you profile and use the installed calendar as your preferred calendar Create a database activity module in a course and add a "date" type field to it Visit the add entry page of the database. The date field created earlier should be displayed correctly (ref: ) Visit the "view list" page of the database and select the advanced search check box The date fields of the search form should be displayed correctly (ref: ) Create a forum activity in a course and go to the forum you created Click on the "Search forums" button at top right to go to the advanced search page The date fields of the search form should be displayed correctly (ref: )

    Description

      The html_writer::select_time does not respect the calendar type plugin that is in use. It always assumes that the calendar is Gregorian which may not be true.

      Attachments

        Issue Links

          Activity

            People

              rezaie9 Shamim Rezaie
              rezaie9 Shamim Rezaie
              Jun Pataleta Jun Pataleta
              Dan Poltawski Dan Poltawski
              Mark Nelson Mark Nelson
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jan/16