Set status modal doesn't load in Safari after setting "Clear status after"
Summary
In Safari, if you set the Clear status after field when setting your status the modal won't load when you go to edit your status.
Steps to reproduce
- Use Safari
- Click on your avatar in the upper right corner
- Click
Set status - Fill out the form and choose a value from
Clear status after - Click on your avatar in the upper right corner
- Click
Edit status
Workaround
- Use a browser other than Safari
Or
- Click
Remove statusand set your status again
What is the current bug behavior?
Modal doesn't load
What is the expected correct behavior?
Modal should load
Relevant logs and/or screenshots
Possible fixes
In app/assets/javascripts/set_status_modal/set_status_form.vue#L84 we parse the date supplied by the backend. But this date is formatted with dashes instead of slashes and Safari doesn't support parsing dates with dashes.
We need to convert the date to a format that Safari supports
