Refactor date handling: replace year 9999 with WireDates.FarFuture to prevent timezone-related parsing issues in player responses

aussie fix
This commit is contained in:
Alexa
2026-06-06 16:38:17 +03:00
parent 31c53b9070
commit 9b39c2e8e4
3 changed files with 51 additions and 5 deletions
+5 -2
View File
@@ -867,8 +867,11 @@ public class StoreService(DorkNetDbContext db, LevelService level, IConfiguratio
{
StorefrontType = storefrontType,
StorefrontName = name,
NextUpdate = "9999-12-31T00:00:00Z",
NewUntil = "9999-12-31T00:00:00Z",
// NOT year 9999: that overflows the watch's local-timezone date
// parse in some DST timezones → "malformed RecNet response" and a
// broken store for that player only. See WireDates.
NextUpdate = WireDates.FarFutureIso,
NewUntil = WireDates.FarFutureIso,
StoreItems = storeItems,
};
}