Edit page fills in form with correct date format.

Previously, date would cause saving to fail when delocalizing time.