Prevent TypeError: can't subtract offset-naive and offset-aware datetimes