Skip to content

Commit 809cd5d

Browse files
committed
Bugfix: Rich Presences wouldn't show on non en-US PCs
1 parent 3ebda35 commit 809cd5d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v1.5.0
44

55
- ⚡️ Updated .NET Runtime (.NET 8 -> .NET 9)
6+
- 🦺 Bugfix: Rich Presences would not show for non-"en-US"/"en-GB" localizations
67

78
## v1.4.1
89

src/PlayGames_RichPresence/PlayGames/AppLifetimeParser.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Dawn.PlayGames.RichPresence.Models;
1+
using System.Text;
2+
using Dawn.PlayGames.RichPresence.Models;
23

34
namespace Dawn.PlayGames.RichPresence.PlayGames;
45

@@ -66,7 +67,7 @@ private static partial class AppSessionRegexes
6667
return null;
6768

6869

69-
if (!DateTimeOffset.TryParseExact(startedTimestampAsString, AppSessionRegexes.STARTED_TIMESTAMP_FORMAT, null, DateTimeStyles.None , out var startedTimestamp))
70+
if (!DateTimeOffset.TryParseExact(startedTimestampAsString, AppSessionRegexes.STARTED_TIMESTAMP_FORMAT, CultureInfo.InvariantCulture, DateTimeStyles.None , out var startedTimestamp))
7071
{
7172
Log.Warning("Failed to parse started timestamp: '{StartedTimestampString}' for {Info}", startedTimestampAsString, info);
7273
return null;

0 commit comments

Comments
 (0)