[Fixes #55044872] Fix datepicker header for new versions of Safari