fixed the date reset bug after submit