updated the test condition of date to zoom