fix condition in showing poll ends date