starlette-admin icon indicating copy to clipboard operation
starlette-admin copied to clipboard

Bug: 'zoneinfo' couldn't fetch the User's TimeZone from system.

Open farzbood opened this issue 2 weeks ago • 0 comments

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.

farzbood avatar Dec 21 '25 10:12 farzbood