fixes the problem of comparing dates offset-naive and offset-aware datetimes by removing the timezone before comparison