increased date comparision to within 2 seconds instead of 1 second