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

Negative timestamp number for a Persian calendar in edit enrolment section

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisite

      1. Install the Persian calendar from https://github.com/rezaies/moodle-calendartype_jalali
      2. Log in as Admin, then from the user menu click on Preferences
      3. Go to Calendar preferences and set your prefered calendar to the Persian calendar

      Test

      1. Create a course and enrol a user to it
      2. From the participants page in the course, click on the gear icon next to the user's name
      3. Modify the form and set a start/end date/duration and save the form
      4. Open the form again and verify that the changes are saved
      5. Repeat steps 3 and 4 with a different combination of data
      Show
      Prerequisite Install the Persian calendar from https://github.com/rezaies/moodle-calendartype_jalali Log in as Admin, then from the user menu click on Preferences Go to Calendar preferences and set your prefered calendar to the Persian calendar Test Create a course and enrol a user to it From the participants page in the course, click on the gear icon next to the user's name Modify the form and set a start/end date/duration and save the form Open the form again and verify that the changes are saved Repeat steps 3 and 4 with a different combination of data
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-66489-master
    • Story Points:
      0
    • Sprint:
      Internationals - 3.8 Sprint 6, Internationals - 3.8 Sprint 7

      Description

      • I install the Persian calendar (https://moodle.org/plugins/calendartype_jalali) and change default calendar to (solar date)
      • I add a course and enroll a user to it
      • In courses > participants go to user "edit enrolment" section
      • Active enrolment starts or enrolment ends for the user and save
      • After saving data, in next time date show wrong for user enrolment start and end
      • In my test client-side js calculate wrong negative timestamp number and send to server-side and saves a negative number for a time in DB so Persian calendar shows the wrong date

        Attachments

          Activity

            People

            Assignee:
            rezaie9 Shamim Rezaie
            Reporter:
            zarehavanesian zareh avanesian
            Peer reviewer:
            Simey Lameze
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Nov/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 24 minutes
                2d 24m