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

The date subplugin of the data activity module does not respect the calendar type plugin

XMLWordPrintable

    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-52355-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. Login as a teacher/admin and create a course.
      4. Create a new database activity.
      5. Go to the created database activity page, then click the Fields tab.
      6. Under Create a new field, select Date.
      7. Enter a field name for the date field and click "Add".
      8. Click the Templates tab and click Save template.
      9. Click the Add entry tab.
      10. Confirm that the date field is displayed according to the user's preferred calendar type.
      11. Try to set a proper date, then click "Save and view"
      12. Confirm that the date is properly saved and displayed.
      13. Try to set an invalid date, for example 31 Bahman 1394 (Bahman month only has 30 days) when using the Persian calendar.Then click "Save and view"
      14. Confirm that the saved value is properly adjusted to the correct date (i.e. for 31 Bahman 1394, it is saved as 1 Esfand 1394. For 31 Esfand 1393, it is saved as 2 Farvardin 1394)
      15. Repeat the test using the Gregorian calendar and confirm that everything's working fine.

      Note: This might help the tester as a reference for the checking out the Persian equivalent of Gregorian calendar dates.

      Show
      Install a new calendar type plugin (for example the Persian calendar ) Update you profile and use the installed calendar as your preferred calendar Login as a teacher/admin and create a course. Create a new database activity. Go to the created database activity page, then click the Fields tab. Under Create a new field , select Date . Enter a field name for the date field and click "Add". Click the Templates tab and click Save template . Click the Add entry tab. Confirm that the date field is displayed according to the user's preferred calendar type. Try to set a proper date, then click "Save and view" Confirm that the date is properly saved and displayed. Try to set an invalid date, for example 31 Bahman 1394 (Bahman month only has 30 days) when using the Persian calendar.Then click "Save and view" Confirm that the saved value is properly adjusted to the correct date (i.e. for 31 Bahman 1394, it is saved as 1 Esfand 1394. For 31 Esfand 1393, it is saved as 2 Farvardin 1394) Repeat the test using the Gregorian calendar and confirm that everything's working fine. Note: This might help the tester as a reference for the checking out the Persian equivalent of Gregorian calendar dates.

      The date subplugin of the data activity module always assumes that the date is in Gregorian. However user may have changed their preferred calendar type in their profile.

            Unassigned Unassigned
            rezaie9 Shamim Rezaie
            Jun Pataleta Jun Pataleta
            Andrew Lyons Andrew Lyons
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.