Using parseInt for string to octal conversion, writing correct time in xml report