Details
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:
});
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
Zeplin
Attachments
Issue Links
- relates to
-
SAK-23662 New datepicker implementation to create constancy throughout various tool's date and time selection mechanisms
-
- RESOLVED
-