added bounds check to createUTCDateTime function