Follows-up on:
- T13836: Easy date selection for Special:NewFiles
- rMW3a7ce3d629ff: Date range filtering in Special:NewFiles – https://gerrit.wikimedia.org/r/326476
- T167601: Transclusion of Special:NewImages produces a JavaScript error
The added javascript code in mediawiki.special.newFiles.js says the interpretation of the values is already swapped as needed on submission (server-side), but the form is still rendered incorrectly and thus this is fixed up client-side.
This is needless client-side overhead and FOUC-like.
Let's explore a way to do this at run-time. I'd be nice to not keep this technical debt around for very long.