-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: django
-
None
-
None
-
Python Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
Example: ExtractHour("start_datetime", tzinfo=datetime.timezone(datetime.timedelta(hours=5)))
Django generates the timezone string "UTC+05:00" but MongoDB requires the "UTC" prefix to be omitted in order to recognize it: DatabaseError: Failed to optimize pipeline :: caused by :: unrecognized time zone identifier: "UTC+05:00"