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

Syllabus: Warnings when adding dates on Edit page

    XMLWordPrintable

    Details

    • Test Plan:
      Hide
      1. Open the browser console
      2. Add Syllabus and Calendar to your site
      3. Click Syllabus and add an item
      4. Click Edit
      5. Click in the Start or End date textboxes

      Expected behavior: no warnings in the console

      Current behavior: Deprecation warning

      Show
      Open the browser console Add Syllabus and Calendar to your site Click Syllabus and add an item Click Edit Click in the Start or End date textboxes Expected behavior: no warnings in the console Current behavior: Deprecation warning

      Description

      Warning displays in console when clicking to add a date for a syllabus item. There are no user-facing errors.

      VM13834 moment-with-locales.min.js:1 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
      Arguments:
      [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: -0-0 :, _f: undefined, _strict: undefined, _locale: [object Object]
      Error
      at Function.createFromInputFallback (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/momentjs/2.22.2/min/moment-with-locales.min.js?version=d58c4f9b:1:3368)
      at wa (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/momentjs/2.22.2/min/moment-with-locales.min.js?version=d58c4f9b:1:21353)
      at va (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/momentjs/2.22.2/min/moment-with-locales.min.js?version=d58c4f9b:1:22064)
      at Sa (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/momentjs/2.22.2/min/moment-with-locales.min.js?version=d58c4f9b:1:22146)
      at l (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/momentjs/2.22.2/min/moment-with-locales.min.js?version=d58c4f9b:1:209)
      at HTMLInputElement.<anonymous> (https://trunk-mysql.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1536:14)
      at HTMLInputElement.dispatch (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=d58c4f9b:3:12444)
      at HTMLInputElement.r.handle (https://trunk-mysql.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=d58c4f9b:3:9173)
      w @ VM13834 moment-with-locales.min.js:1
      (anonymous) @ VM13834 moment-with-locales.min.js:1
      wa @ VM13834 moment-with-locales.min.js:1
      va @ VM13834 moment-with-locales.min.js:1
      Sa @ VM13834 moment-with-locales.min.js:1
      l @ VM13834 moment-with-locales.min.js:1
      (anonymous) @ VM13842 lang-datepicker.js:1536
      dispatch @ VM13838 jquery.min.js:3
      r.handle @ VM13838 jquery.min.js:3

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Git Integration