From 60a48ff5f3c76ec19fbc6a894d4bfbc0dc44674d Mon Sep 17 00:00:00 2001 From: Fesaa <77553571+Fesaa@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:15:05 +0000 Subject: [PATCH] Fix some locales being unable to start Kavita for the first time (#3623) --- API/Data/Seed.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/API/Data/Seed.cs b/API/Data/Seed.cs index 78a42b12f..71de39df5 100644 --- a/API/Data/Seed.cs +++ b/API/Data/Seed.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Immutable; +using System.Globalization; using System.IO; using System.Linq; using System.Reflection; @@ -261,7 +262,7 @@ public static class Seed new() {Key = ServerSettingKey.EmailSizeLimit, Value = 26_214_400 + string.Empty}, new() {Key = ServerSettingKey.EmailCustomizedTemplates, Value = "false"}, new() {Key = ServerSettingKey.FirstInstallVersion, Value = BuildInfo.Version.ToString()}, - new() {Key = ServerSettingKey.FirstInstallDate, Value = DateTime.UtcNow.ToString()}, + new() {Key = ServerSettingKey.FirstInstallDate, Value = DateTime.UtcNow.ToString(CultureInfo.InvariantCulture)}, }.ToArray()); foreach (var defaultSetting in DefaultSettings)