Datepicker doesnt work with different date formats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
19.04 |
Fix Released
|
High
|
Unassigned | ||
19.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
When a different date format (other than the Mahara default YYYY/MM/DD HH:mm), the datepicker doesnt work.
Steps to reproduce:
1. Update lang/en.
$string[
$string[
2. Clear site cache
3. In the Shared by Me, set 'Allow comments' = Yes
4. Enter a page to share with a group with an end date selected from outside of the current month.
5. Save and re-enter the page.
Expected result: Clicking on the 'to' field opens the datepicker
Actual result: the datepicker doesnt open and error messages are displayed in the console.
Steps I've tried to fix:
-Hard coding the new date format (DD/MM/YYYY h:mm A) into theme/raw/
-Adding new code to the library as per https:/
-Removing the local from theme/raw/
description: | updated |
Changed in mahara: | |
importance: | Undecided → High |
Changed in mahara: | |
status: | Confirmed → In Progress |
Strange - I try replicating the steps above on master in Firefox / Chrome and I have no problem saving / editing the date in the new format if the date is non-ambiguous
Eg if the date I enter / edit is 27/09/2019 07:36 AM then all works fine
but if I enter and save 04/09/2019 07:36 AM then try to edit it fails
I believe this is because 04/09/2019 can mean both 04 Sept 2019 and April 09 2019 so things break as we are being unclear