Skip to content

localtime fails when run from a cygwin terminal #91511

@in-tension

Description

@in-tension

So I'm not entirely sure whether this would be considered a bug. It's unclear to me whether running python using cygwin is supported.

Anyway, when using a cygwin terminal (on windows), python fails to get the right localtime/timezone. It seems to revert to default UTC/GMT. I'm guessing that python thinks it's on linux. Then when it looks in the default locations for timezone data for linux, it fails because it's actually on windows.

The same python executable when run from a windows command prompt accurately determines the local timezone.

python version: 3.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions