minor code fix for floatToTime function