Add global variable to configure the update interval for clocks and fix edge case with calendar.