Skip to content

Commit e752bbb

Browse files
wuliang229copybara-github
authored andcommitted
chore: Remove unused tzlocal dependency and logging
The `tzlocal` library and the logging of the local timezone were not used in the `DatabaseSessionService` logic. Co-authored-by: Liang Wu <wuliang@google.com> PiperOrigin-RevId: 865677320
1 parent fb941f9 commit e752bbb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/google/adk/sessions/database_session_service.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from sqlalchemy.ext.asyncio import create_async_engine
3636
from sqlalchemy.pool import StaticPool
3737
from typing_extensions import override
38-
from tzlocal import get_localzone
3938

4039
from . import _session_util
4140
from ..errors.already_exists_error import AlreadyExistsError
@@ -134,10 +133,6 @@ def __init__(self, db_url: str, **kwargs: Any):
134133
f"Failed to create database engine for URL '{db_url}'"
135134
) from e
136135

137-
# Get the local timezone
138-
local_timezone = get_localzone()
139-
logger.info("Local timezone: %s", local_timezone)
140-
141136
self.db_engine: AsyncEngine = db_engine
142137

143138
# DB session factory method

0 commit comments

Comments
 (0)