Fix jquery ui timepicker time format.

Fixes #5798