Force correct dates on detail pages

Also turned dates into proper date objects for a few calculations.