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

Negative timestamp number for a Persian calendar in edit enrolment section

XMLWordPrintable

    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MDL-66489-master
    • 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
    • 0
    • Internationals - 3.8 Sprint 6, Internationals - 3.8 Sprint 7

      • 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

            rezaie9 Shamim Rezaie
            zarehavanesian zareh avanesian
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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