Bug 977050 - Automate changing end date/time in Calendar

This patch is just for ui review not code review currently.
if we need to call it for both cases please add a comment explaining why.