Fixed _time2int() regex when using custom am/pm strings. Closes #288