Skip to content

Support ZoneInfo as a field type #46

@mthuurne

Description

@mthuurne

Sometimes we need to configure a time zone, for example when we have to convert naieve timestamps to timezone-aware ones and want to configure which time zone to apply.

If a field is annotated as ZoneInfo, the parser would take a string value like "Europe/Amsterdam" from TOML and inject the respective ZoneInfo instance into the dataclass. The serialization to string could use the ZoneInfo.key property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions