1
0
mirror of synced 2025-02-26 06:49:45 +01:00

Force en-US cultureinfo for updater to correct update date.

This commit is contained in:
KillzXGaming 2020-06-15 18:05:02 -04:00
parent a8ec469252
commit aaa98afa8e

View File

@ -7,6 +7,7 @@ using Octokit;
using System.Net; using System.Net;
using System.IO.Compression; using System.IO.Compression;
using System.IO; using System.IO;
using System.Globalization;
using System.Security.AccessControl; using System.Security.AccessControl;
namespace Updater namespace Updater
@ -21,6 +22,8 @@ namespace Updater
static void Main(string[] args) static void Main(string[] args)
{ {
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
execDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location); execDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
folderDir = execDirectory; folderDir = execDirectory;
@ -165,8 +168,9 @@ namespace Updater
} }
return true; return true;
} }
catch catch (Exception ex)
{ {
Console.WriteLine($"Failed to download update! {ex.ToString()}");
return false; return false;
} }
} }