main
← groups-with-padded-day
opened 08:45PM - 25 Jun 25 UTC
We were building the list of events by using the non padded day as key, eg:
`…``
{ 3: { ... }, 16: { ... } }
```
Which we would then use to construct a date and would end up doing something like:
```
moment("2025-07-3").format()
```
It was working in most browsers, but safari was not accepting it and would display an `invalid date` error.
The fix is using a padded day as key that will ensure consistent behavior:
```
{ "03": { ... }, "16": { ... } }
```
No test as it's browser specific behavior.