openedx / openedx/frontend-app-authoring

Bug: Date picker controls cause MFE error on Safari

Open
#2,323 4 comments 0 reactions 1 assignee View on GitHub

@ahtesham-quraish is already working on this.

Since Jul 31, 2025.

good first issue help wanted
Dominant language
TypeScript
Stars
17
Forks
218
Avg merge
9d 20h
Merged PRs (30d)
20

Description

Unverified bug report logged on behalf of forum user paulov in topic 16556

Original report:

Steps to reproduce:

Go to the studio cms
Choose a course
Go to “Content > Updates”
Click on “New update”
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

Preliminary analysis:
Safari is quite strict about following ISO-8601 date formats so my guess is it's something to do with the code here:
https://github.com/openedx/frontend-app-authoring/blob/8e3ea89339e4ab6258c01f8e92436ee5dc055889/src/course-updates/hooks.jsx#L62
which is formatting the date as 'MMMM D, YYYY' from
https://github.com/openedx/frontend-app-authoring/blob/8e3ea89339e4ab6258c01f8e92436ee5dc055889/src/constants.js#L4

I do not have access to a device with Safari for testing and validation, analysis is purely speculative...

@bradenmacdonald for your attention as requested

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.