Fixing an issue with compairing offset-naive and offset-aware datetimes