Fix date comparison (bug 951425)

Add an assert.dateCloseTo and test the assertion