diff options
author | Mary <mary@mary.zone> | 2022-06-29 22:08:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 22:08:30 +0200 |
commit | 0c66d71fe8e1f096a940571b644eca9b5896931d (patch) | |
tree | 50e670645b7f1f7df568791c3047b921a1a1914d | |
parent | bdc4fa81f23d61947678c03f6ebef0a5d9100124 (diff) |
ui: Fix timezone abbreviation since #3361 (#3430)1.1.160
As title say
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs index 081e45a2..4c988694 100644 --- a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs +++ b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs @@ -15,7 +15,7 @@ using Ryujinx.HLE.Utilities; using System; using System.Collections.Generic; using System.IO; - +using System.Text; using TimeZoneRuleBox = Ryujinx.Common.Memory.Box<Ryujinx.HLE.HOS.Services.Time.TimeZone.TimeZoneRule>; namespace Ryujinx.HLE.HOS.Services.Time.TimeZone @@ -181,7 +181,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone var abbrStart = tzRule.Chars[ttInfo.AbbreviationListIndex..]; int abbrEnd = abbrStart.IndexOf((byte)0); - outList.Add((ttInfo.GmtOffset, locName, abbrStart[..abbrEnd].ToString())); + outList.Add((ttInfo.GmtOffset, locName, Encoding.UTF8.GetString(abbrStart[..abbrEnd]))); } } |