fixing the click event of the resources to
provide the correct date