fixed incorrect dates being displayed