fix issue with incorrect date format