Add support for fixed offset tzinfo to Extract database function

XMLWordPrintableJSON

    • 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"

            Assignee:
            Tim Graham
            Reporter:
            Tim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: