Fixes for date JS issues in Safari
Merge branch 'master' into phplint-output-block