New method of date comparison in synchronizer

Fix of c5a83c75cc749b5d33dfc1cac4426d52ae18a161

Old method for comparing dates do not work properly (sadly I don't have
enough time to find cause).
Revert "make engine ignore facilities (for testing of new engine)"

This reverts commit 5876305d5eaae3c210beed7d08567038c98d520a.

This commit should not get to master branch.