Skip to content

Time 0.2.23 fails to determine local offset #296

Closed
@puetzp

Description

@puetzp

Hey there,

after upgrading to v0.2.23 I am unable to retrieve the correct local offset from my system.

println!("{}", UtcOffset::current_local_offset());

returns "+0", while

println!("{}", UtcOffset::try_current_local_offset());

returns a IndeterminateOffsetError.

After downgrading to 0.2.22, both functions correctly return "+1" (CET).

date '+%z'

also returns "+0100", as expected.

Rust version: rustc 1.47.0 (18bf6b4f0 2020-10-07)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-coreArea: anything not otherwise coveredC-questionCategory: seeking clarification on a topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions