fixing date parsing on client and server side.