Skip to content

Timezone from TZ Aware datetime string #148

@neotheicebird

Description

@neotheicebird

When I tried to parse this string looking for the timezone:

maya.parse('2018-04-23T12:00:00+05:30').timezone which is Asia/Kolkata the response is UTC. Is this by design?

I understand the .local_timezone gives the timezone of the machine, which is also not what I am looking for.

If a human being reads 2018-04-23T12:00:00+05:30 I think they will assume, 12oclock in Kolkata or somewhere in india.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions