Fix datetime handling in event form