Skip to content

Commit 6b09362

Browse files
Force invariant culture
1 parent cf2869c commit 6b09362

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ASCOM.Alpaca.Simulators/Startup.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Microsoft.Extensions.Hosting;
99
using Microsoft.OpenApi.Models;
1010
using System;
11+
using System.Globalization;
1112
using System.Linq;
1213
using System.Net;
1314

@@ -71,6 +72,9 @@ public void ConfigureServices(IServiceCollection services)
7172
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
7273
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime lifetime)
7374
{
75+
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
76+
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
77+
7478
//Use Development exceptions if in development mode. These are disabled in production for security.
7579
if (env.IsDevelopment())
7680
{

0 commit comments

Comments
 (0)