Make updating the activitiesList synchronous again. To prevent any
strange artifacts when the list may not been updated already - and to
fix the test.
get rid of deprecated DateMidnight