Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
fda768c3
Commit
fda768c3
authored
Nov 08, 2018
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging Culture Error
parent
ee174d89
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+0
-3
Startup.cs
Stratis.Guru/Startup.cs
+2
-0
Update.sh
Update.sh
+2
-1
No files found.
Stratis.Guru/Controllers/HomeController.cs
View file @
fda768c3
...
...
@@ -46,9 +46,6 @@ namespace Stratis.Guru.Controllers
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
;
}
else
...
...
Stratis.Guru/Startup.cs
View file @
fda768c3
...
...
@@ -28,6 +28,8 @@ namespace Stratis.Guru
public
Startup
(
IConfiguration
configuration
)
{
CultureInfo
.
DefaultThreadCurrentCulture
=
new
CultureInfo
(
"en-US"
);
Configuration
=
configuration
;
}
...
...
Update.sh
View file @
fda768c3
#!/bin/bash
git pull
systemctl stop stratis-guru.service
dotnet publish
-c
Release
systemctl restart stratis-guru.service
\ No newline at end of file
systemctl start stratis-guru.service
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment