diff --git a/docs/exchangelib/ewsdatetime.html b/docs/exchangelib/ewsdatetime.html index 403cfa61..e1528e59 100644 --- a/docs/exchangelib/ewsdatetime.html +++ b/docs/exchangelib/ewsdatetime.html @@ -28,11 +28,7 @@
exchangelib.ewsdatetime
import datetime
import logging
-
-try:
- import zoneinfo
-except ImportError:
- from backports import zoneinfo
+import zoneinfo
import tzlocal
@@ -311,7 +307,6 @@ Module exchangelib.ewsdatetime
try:
return {
cls.__module__.split(".")[0]: lambda z: z,
- "backports": cls.from_zoneinfo,
"datetime": cls.from_datetime,
"dateutil": cls.from_dateutil,
"pytz": cls.from_pytz,
@@ -953,7 +948,6 @@ Methods
try:
return {
cls.__module__.split(".")[0]: lambda z: z,
- "backports": cls.from_zoneinfo,
"datetime": cls.from_datetime,
"dateutil": cls.from_dateutil,
"pytz": cls.from_pytz,
@@ -1085,7 +1079,6 @@ Static methods
try:
return {
cls.__module__.split(".")[0]: lambda z: z,
- "backports": cls.from_zoneinfo,
"datetime": cls.from_datetime,
"dateutil": cls.from_dateutil,
"pytz": cls.from_pytz,
diff --git a/docs/exchangelib/index.html b/docs/exchangelib/index.html
index 3e727087..3b14064a 100644
--- a/docs/exchangelib/index.html
+++ b/docs/exchangelib/index.html
@@ -64,7 +64,7 @@ Package exchangelib
from .transport import BASIC, CBA, DIGEST, GSSAPI, NTLM, OAUTH2, SSPI
from .version import Build, Version
-__version__ = "5.4.3"
+__version__ = "5.5.0"
__all__ = [
"AcceptItem",
@@ -134,9 +134,9 @@ Package exchangelib
"discover",
]
-# Set a default user agent, e.g. "exchangelib/3.1.1 (python-requests/2.22.0)"
import requests.utils
+# Set a default user agent, e.g. "exchangelib/5.4.3 (python-requests/2.31.0)"
BaseProtocol.USERAGENT = f"{__name__}/{__version__} ({requests.utils.default_user_agent()})"
@@ -6124,7 +6124,6 @@ Methods
try:
return {
cls.__module__.split(".")[0]: lambda z: z,
- "backports": cls.from_zoneinfo,
"datetime": cls.from_datetime,
"dateutil": cls.from_dateutil,
"pytz": cls.from_pytz,
@@ -6256,7 +6255,6 @@ Static methods
try:
return {
cls.__module__.split(".")[0]: lambda z: z,
- "backports": cls.from_zoneinfo,
"datetime": cls.from_datetime,
"dateutil": cls.from_dateutil,
"pytz": cls.from_pytz,
@@ -10266,6 +10264,9 @@ Inherited members
raise ValueError("'start' must be before 'end'")
if self.end < datetime.datetime.now(tz=UTC):
raise ValueError("'end' must be in the future")
+ # Some servers only like UTC timestamps
+ self.start = self.start.astimezone(UTC)
+ self.end = self.end.astimezone(UTC)
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}")
@@ -10420,6 +10421,9 @@ Methods
raise ValueError("'start' must be before 'end'")
if self.end < datetime.datetime.now(tz=UTC):
raise ValueError("'end' must be in the future")
+ # Some servers only like UTC timestamps
+ self.start = self.start.astimezone(UTC)
+ self.end = self.end.astimezone(UTC)
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}")
diff --git a/docs/exchangelib/settings.html b/docs/exchangelib/settings.html
index d4bf01e8..653e1091 100644
--- a/docs/exchangelib/settings.html
+++ b/docs/exchangelib/settings.html
@@ -63,6 +63,9 @@ exchangelib.settings
pdoc 0.10.0.