SQLAlchemy provides a mechanism to work with timezones. For instance, user may specify column as DateTime(timezone=True), which means that it stores a timezone-aware datetime.
Solution
Since the YDB doesn't support storing of timezone-aware datetime in tables, I propose a workaround converting all datetime for timezone=True columns to UTC. So an application may work with timezone-aware datetime, which is a best practice.
Problem
SQLAlchemy provides a mechanism to work with timezones. For instance, user may specify column as
DateTime(timezone=True)
, which means that it stores a timezone-aware datetime.Solution
Since the YDB doesn't support storing of timezone-aware datetime in tables, I propose a workaround converting all datetime for
timezone=True
columns to UTC. So an application may work with timezone-aware datetime, which is a best practice.Example