starlette-admin
starlette-admin copied to clipboard
Bug: 'zoneinfo' couldn't fetch the User's TimeZone from system.
Describe the bug
Since the zoneinfo couldn't fetch the user's Time-Zone from the System (Windows specifically) and the tzdata won't ship with Python 3.9+ , it caused raising "zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC'" , and no table rows listed in the Admin Panel.
So, it seems that tzdata needed to be add as a dependency to give the zoneinfo a fallback source of Timezone.
To Reproduce Accessing the AdminView in an environment with above condition.
Environment (please complete the following information):
- Starlette-Admin version: [e.g. 0.16.0]
- ORM/ODMs: [SQLAlchemy]
- Python 3.10
- asyncpg
- postgresql18 Additional context Add any other context about the problem here.