Commit fda768c3 authored by Clint.Network's avatar Clint.Network

Debugging Culture Error

parent ee174d89
...@@ -46,9 +46,6 @@ namespace Stratis.Guru.Controllers ...@@ -46,9 +46,6 @@ namespace Stratis.Guru.Controllers
if (rqf.RequestCulture.UICulture.ThreeLetterISOLanguageName.Equals("eng")) if (rqf.RequestCulture.UICulture.ThreeLetterISOLanguageName.Equals("eng"))
{ {
var x = new CultureInfo("en-US");
x.NumberFormat.CurrencySymbol = "$";
Thread.CurrentThread.CurrentCulture = x;
displayPrice = coinmarketcap.data.quotes.USD.price; displayPrice = coinmarketcap.data.quotes.USD.price;
} }
else else
......
...@@ -28,6 +28,8 @@ namespace Stratis.Guru ...@@ -28,6 +28,8 @@ namespace Stratis.Guru
public Startup(IConfiguration configuration) public Startup(IConfiguration configuration)
{ {
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration; Configuration = configuration;
} }
......
#!/bin/bash #!/bin/bash
git pull git pull
systemctl stop stratis-guru.service
dotnet publish -c Release dotnet publish -c Release
systemctl restart stratis-guru.service systemctl start stratis-guru.service
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment