NUDelta / interactive-soap-notes

Supporting coaching for complex work within and outside of coaching interactions
0 stars 0 forks source link

28 error casting date from string to date in mongoose #33

Closed kapil1garg closed 7 months ago

kapil1garg commented 7 months ago

This PR fixes the issue of Safari not saving data due it to it's implementation of date being different than Chrome and the node server. The issue is fixed by parsing the date locally before it is sent back to the server. This allows each browser to use different implementations for converting dates to strings and parsing them, but has the same, consistent Date object sent to the server for saving.

The PR also adds save status (and error messages, if they happen) to the header of SOAP notes.

Closes #28.