Fix exception in date time widget

Passing a string or an integer as an option for date time inputs
will error in `Call to undefined function RuntimeException`