Fixed error date conversion