Fixed borrow from end hour in get_time()

Fixed borrow from end hour when end_sec less than start_sec and end_min equals 0