fix(ui.js) fixes loading of locale settings to jquery ui datepicker

Also timestamp creation now uses datepicker.parseDate method as a less
clumsy way of generating timestamp.

fixes #7476