Fixed off-by-one bug in time conversion routine.