From aaa98afa8ea6f15a0d27b774464204d8e0e1821e Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 15 Jun 2020 18:05:02 -0400 Subject: [PATCH] Force en-US cultureinfo for updater to correct update date. --- Updater/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Updater/Program.cs b/Updater/Program.cs index 3b3c94e1..c178558f 100644 --- a/Updater/Program.cs +++ b/Updater/Program.cs @@ -7,6 +7,7 @@ using Octokit; using System.Net; using System.IO.Compression; using System.IO; +using System.Globalization; using System.Security.AccessControl; namespace Updater @@ -21,6 +22,8 @@ namespace Updater static void Main(string[] args) { + Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); + execDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location); folderDir = execDirectory; @@ -165,8 +168,9 @@ namespace Updater } return true; } - catch + catch (Exception ex) { + Console.WriteLine($"Failed to download update! {ex.ToString()}"); return false; } }