Bugfix/set equal date

check if old and new value are the same by using equals to support e.g. Dates (like few lines below)