Fix time conversion

Needed to convert the result of the split to integers.