Moved logic to set initial date and time in the view instead of the template as the jQuery code wasn't working with Firefox. Removed timepicker for now as it seems to be only working if the value includes a date.