MFE Authoring error on "updates" section in Safari

Hi! I’ve encontered an issue in the authoring MFE when using Safari, and couldn’t find any open discussion about it.

Steps to reproduce:

  1. Go to the studio cms
  2. Choose a course
  3. Go to “Content > Updates”
  4. Click on “New update”
  5. Error appears

The error is only happening on Safari.

Screen error:
Unexpected Application Error!
Invalid time value

Console logs:
React Router caught the following error during render
Range error: Invalid time value - hooks.tsx:632

Has anyone else encountered similar issues with Safari?
Thanks in advance for the support.

I don’t know this for a fact, and I don’t have access to an OSX device to test, but my guess is it’s something to do with the date formatting. apparently Safari is quite strict about following ISO-8601 date formats so my guess is it’s something to do with the code here: frontend-app-authoring/src/course-updates/hooks.jsx at 8e3ea89339e4ab6258c01f8e92436ee5dc055889 · openedx/frontend-app-authoring · GitHub which is formatting the date as ‘MMMM D, YYYY’ from frontend-app-authoring/src/constants.js at 8e3ea89339e4ab6258c01f8e92436ee5dc055889 · openedx/frontend-app-authoring · GitHub
This might be an interoperability bug, but I’m unable to verify for sure. @braden do you have any thoughts on this?

Hi @PauloV and welcome to the community :slight_smile:

What version of Tutor/the site are you running? Does it work in any other browser such as Chrome or Firefox?

Hi @sarina, thanks!

I am running tutor version 20.0.0. It works on both Chrome and Firefox.

@PauloV thanks for confirming! I suspect what @joel.edwards mentions is the bug.

@PauloV or @joel.edwards would you mind opening a bug ticket on https://github.com/openedx/frontend-app-authoring/issues and ping me there? I can look into it, or if someone else wants to take it on I’m happy to review.

Thanks @joel.edwards. I have confirmed the bug and put details onto the issue. If anyone has time to work on a fix, I’d be happy to review it, including testing in Safari.