refactored date comparisons to not care about timezone

we should also add a new test which checks if timezones are restored to the originally stored timezone. not sure however where to put such a test.