mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #12355] [MERGED] fix: update datetime and logging imports #9697
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12355
Author: @silentoplayz
Created: 4/2/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @tjbck
Base:
dev← Head:logging-fix📝 Commits (2)
d65471cfixdd5bafeUpdate env.py📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/auth.py(+3 -1)📄 Description
Pull Request Checklist:
devbranch.Changelog Entry
Description
pytzfor UTC handling and updated logging imports to handle deprecation issues in Python 3.11.Changed
from datetime import UTC, datetime, timedeltawithfrom datetime import datetime, timedeltaandfrom pytz import UTCorfrom datetime import timezone as tz.Fixed
datetimeimport.No further changes were made beyond the minimum required for compatibility.
Screenshots or Videos
After: (Success!)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.