add a convenient function for formatting the dates
add a widget that displays the events as a list
load widget only from php 5.3 onwards
updating version