Setting the dates in editcontent correctly. Fixes #1831.