Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44065

"Now" button in date picker doesn't update after page initially loads

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • 19 status:
      Please Merge
    • Test Plan:
      Hide

      As an instructor, open a course site with Assignments tool, open the Assignments tool, and add a new assignment.

      Wait for 5 minutes and set the time for open date, due date, and accept until date under Availability by clicking "now" button in the date picker.

      Expected Behavior: The dates will be updated to the current system time of your computer.

      Current Behavior: The dates will still be the system time of your computer 5 minutes before when you first opened the editing page of this assignment.

      Show
      As an instructor, open a course site with Assignments tool, open the Assignments tool, and add a new assignment. Wait for 5 minutes and set the time for open date, due date, and accept until date under Availability by clicking "now" button in the date picker. Expected Behavior: The dates will be updated to the current system time of your computer. Current Behavior: The dates will still be the system time of your computer 5 minutes before when you first opened the editing page of this assignment.

      Description

      The "now" button in the date picker of Assignments tool should set the date to be the current time of the user's computer system. However, if the user edits the assignment, waits for some minutes (at least 5 as that's the interval for the picker), and then clicks "now," the time will still be the time when the user first opens the editing page of the assignment and the current time of the user's computer system is not updated.

      To reproduce:

      1. Create a site with several tools where it is possible to set dates, e.g.:
        • Announcements
        • Assignments
        • Resources
        • Tests & Quizzes
      2. Go to Assignments. Start to Add an assignment. Wait a few minutes, and then for the Open Date, Due Date, Accept Until Date, try to use the "Now" button in the date picker to set the date/time to "now".
      3. Date does not update. It is still the default Open Date that you got upon starting to create the assignment.
      4. Go to Announcements, add an announcement.
      5. Try to set the announcement to available at specific dates.
      6. Try to set the available date to "Now" and you will find the default Open Date you got when starting to create the assignment is still there.
      7. Repeat steps for creating a quiz > Settings.
      8. Repeat steps for editing details on a file/folder in Resources to set release dates.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  fyin2 Fangcong Yin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration