Some date logic fixing for temp url modal