JARVIS-418 Minor fixes applied to the intToTime function to accomodate negative values