Skip to content

time: EEST timezone not recognized on windows #62065

@mohammedrefaat

Description

@mohammedrefaat

What version of Go are you using (go version)?

$ go version
1.21.0

Does this issue reproduce with the latest release?

yes

What did you do?

i use this code in my software work in windows

zone, _:= time.Now().Zone()
location_currentzone, err := time.LoadLocation(zone)
if err != nil {

	return time.Now(), err
}

final := te.In(location_currentzone)

but when i upgrade go from 1.20.6 to 1.21.0
time.LoadLocation recognize only to utc and local only and didn't recognize any zone output from time.Now().Zone()
this happened in debug or build in machine have 1.21.0 golang

error:
unknown time zone EEST

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions