add -1 as special case to time parameters

SUP-2290 #time 3h
Merge pull request #1381 from kaltura/IX-9.17.0-SUP-2290

add -1 as special case to time parameters