fixed date conversion on client side