Skip to content

TimeZoneInfo.StandardName empty when run under ubuntu-latest NET 8, while value present with NET 6 #95213

Closed
@lahma

Description

@lahma

Description

I'm having some trouble wrapping my head around this. We have a test case in Jint that work under NET 6 and full framework, but now when trying to target NET 8 the TimeZoneInfo.StandardName is empty.

I created a simple assert that Pacific Standard Time has a name here:

https://github.com/lahma/timezone-repro/blob/main/UnitTest1.cs

Fails on NET 8 but not on NET 6, test project multi-targets both:

https://github.com/lahma/timezone-repro/actions/runs/6983316148/job/19004227812

I would understand that this could be any tzdata/ICU problem, but the same GitHub Actions runner is running both .NET 6 and 8 and thus I would expect that those databases are valid.

/cc @sebastienros

Reproduction Steps

https://github.com/lahma/timezone-repro

Expected behavior

Would print the correct time zone on both NET 6 and NET 8.

Actual behavior

NET 8 has empty StandardName

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions