refactored method to check equality of local dates with remotes