ouhft / COPE

Project Repository for Work Package 4 of the COPE Transplant Trial
https://cope.nds.ox.ac.uk
1 stars 0 forks source link

Date values not appearing in date time fields on load #225

Closed marshalc closed 7 years ago

marshalc commented 7 years ago

Example is Organ Allocation dates. Values are stored in the HTML, with extra seconds (so wrong format) but not appearing in the user display (which means the data is lost on save!)

marshalc commented 7 years ago

Additionally DateFields are not getting Date Time values written in by the DateTimePicker

The value vanishing appears to happen when the Picker is initialised on page load, so as I feared, this is somewhere in the JS code and likely a third party problem.

marshalc commented 7 years ago

Key suspect is the https://github.com/Eonasdan/bootstrap-datetimepicker library. I had to patch this manually 14 months ago when I first started to use it, and since then it has been updated to track jQuery 3, so it looks like I'm going to have to debug the library again (see https://github.com/marshalc/bootstrap-datetimepicker)

marshalc commented 7 years ago

Applying the same fixes again to the 4.17.47 that I'd used previously has fixed the DatetimePicker issues.