Fix datetime range apply in Safari