Update ui-utils.js

Allow for 12/24 hour time