Fixed problem where changing the dates of an existing event failed.

Signed-off-by: Michel <info@1st-setup.nl>