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

Lesson Builder should use the internationalized date/time picker from SAK-23662

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0, 11.0
    • Component/s: Lessons
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      LSNBLDR-349

      Description

      SAK-23662 implemented an internationalized date/time picker. It requires jQuery and jQuery-UI. As the user changes their locale, the date and time picker both change to the preferred format of the locale (e.g., 24-hour time format in Swedish).

      We have already implemented the new date/time picker in Assignments, Forums, Announcements, Sections, and Polls.

      The basic JavaScript looks like this:

      localDatePicker({
      input: '#releaseDate',
      useTime: 1,
      parseFormat: 'YYYY-MM-DD HH:mm:ss',
      val: '<insert the default date-time value here>',
      ashidden:

      { iso8601: 'releaseDateISO8601' }

      });

      The ashidden will create a new hidden variable called releaseDateISO8601 and will fill in that value with the ISO-8601 formatted time.

      Then in the Java code the hidden time can be brought in with this SimpleDateFormat = "yyyy-MM-dd'T'HH:mm:ss";

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hedrick Charles Hedrick
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code