Fixed _roundAndFormatTime() for 12:00am value. Closes #274
Impoved time string parsing in _time2int(). Closes #273