make getEvents take into account the local timezone of the javascript object.