reset date on main.js