Skip to content

[libs][iOS] TimeZoneInfo StandardName/DisplayName display abbreviations instead of full name #89466

@mdh1418

Description

@mdh1418

Description

As mentioned in #85126 (comment), StandardName and DisplayName return abbreviations instead of the full name that other platforms return. This is likely due to iOS using its own version of ICU, and the data there not being complete enough to return the full name. As a result, it is likely that the backup values

string? standardDisplayName = _standardAbbrevName;
and
string? daylightDisplayName = _daylightAbbrevName ?? _standardAbbrevName;
are being used instead.

Reproduction Steps

Run the iOS sample src/mono/sample/iOS with

Console.WriteLine("StandardName: {TimeZoneInfo.Local.StandardName}");
Console.WriteLine("DaylightName: {TimeZoneInfo.Local.DaylightName}");

Expected behavior

Should see full names and not abbreviations, and since I'm based on East coast of North America,
Eastern Standard Time
Easter Daylight Time

Actual behavior

I'm based on East coast of North America, so
EST
EDT

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions