diff --git a/Lombiq.DataTables.Samples/Lombiq.DataTables.Samples.csproj b/Lombiq.DataTables.Samples/Lombiq.DataTables.Samples.csproj index c3071959a..0df3e4e4e 100644 --- a/Lombiq.DataTables.Samples/Lombiq.DataTables.Samples.csproj +++ b/Lombiq.DataTables.Samples/Lombiq.DataTables.Samples.csproj @@ -34,8 +34,8 @@ - - + + diff --git a/Lombiq.DataTables.Samples/Views/Sample/DataTableTagHelper.cshtml b/Lombiq.DataTables.Samples/Views/Sample/DataTableTagHelper.cshtml index afc9a510a..a66843a6d 100644 --- a/Lombiq.DataTables.Samples/Views/Sample/DataTableTagHelper.cshtml +++ b/Lombiq.DataTables.Samples/Views/Sample/DataTableTagHelper.cshtml @@ -1,4 +1,3 @@ -@using System.Globalization @model IEnumerable @* This is a static data table. It simply adds the script and stylesheet resources to the page, otherwise it behaves like a zero configuration DataTable (https://datatables.net/examples/basic_init/zero_configuration.html). But you @@ -8,13 +7,6 @@ @* Always make sure Views/_ViewImports.cshtml has "@addTagHelper *, Lombiq.DataTables" for the tag helper. *@ -@{ - // Forces the CultureInfo to use the canonical date format. This prevents user or system level customizations. We - // need this for the UI tests to work in a portable way. This is a temporary workaround, and the problem has been - // reported and a general solution requested here: https://github.com/OrchardCMS/OrchardCore/issues/11228 - var cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name, useUserOverride: false); -} - @@ -39,7 +31,7 @@ @if (employee.StartDate.Value is { } startDate) { - @startDate.ToString("d", cultureInfo) + @startDate.ToString("d") } diff --git a/Lombiq.DataTables/Lombiq.DataTables.csproj b/Lombiq.DataTables/Lombiq.DataTables.csproj index 5f4747b2f..b75620345 100644 --- a/Lombiq.DataTables/Lombiq.DataTables.csproj +++ b/Lombiq.DataTables/Lombiq.DataTables.csproj @@ -39,11 +39,11 @@ - + - - - + + + @@ -53,9 +53,9 @@ - - - + + + diff --git a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests.UI/Lombiq.DataTables.Tests.UI.csproj b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests.UI/Lombiq.DataTables.Tests.UI.csproj index 1cae8ad6f..df5482895 100644 --- a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests.UI/Lombiq.DataTables.Tests.UI.csproj +++ b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests.UI/Lombiq.DataTables.Tests.UI.csproj @@ -25,7 +25,7 @@ - + diff --git a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/Lombiq.DataTables.Tests.csproj b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/Lombiq.DataTables.Tests.csproj index e8aab637e..65cd3ae19 100644 --- a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/Lombiq.DataTables.Tests.csproj +++ b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/Lombiq.DataTables.Tests.csproj @@ -6,7 +6,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive