Fixed timezone issue with max date.