Fixed old time pattern issue, throw error on no matched indices

...w throws error on timepicker