Skip to content

Commit 6d113e0

Browse files
committed
Fix CreateLocal not preserving lazy initialized names
1 parent b453345 commit 6d113e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ private TimeZoneInfo CreateLocal()
8888
timeZone = new TimeZoneInfo(
8989
timeZone._id,
9090
timeZone._baseUtcOffset,
91-
timeZone._displayName,
92-
timeZone._standardDisplayName,
93-
timeZone._daylightDisplayName,
91+
timeZone.DisplayName,
92+
timeZone.StandardName,
93+
timeZone.DaylightName,
9494
timeZone._adjustmentRules,
9595
disableDaylightSavingTime: false,
9696
timeZone.HasIanaId);

0 commit comments

Comments
 (0)