Converts events condense upcoming events code to be 5.2 compatible