From c9a8cf4e0a2f921650ce3661c016ef64ff9ee5f7 Mon Sep 17 00:00:00 2001 From: Aaron Schultz Date: Fri, 16 Aug 2019 15:29:59 +0200 Subject: [PATCH] Convert UTC to local time + new version --- .../StatisticsAnalysisTool/Models/MarketOrder.cs | 8 ++++---- .../StatisticsAnalysisTool/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs b/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs index ab0709656..cec26bbd9 100644 --- a/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs +++ b/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs @@ -132,19 +132,19 @@ public MarketCurrentPricesItem(MarketResponseTotal marketResponseTotal) public ulong SellPriceMin { get; set; } public string SellPriceMinString => SellPriceMin.ToString("N0", new CultureInfo(LanguageController.CurrentLanguage)); public DateTime SellPriceMinDate { get; set; } - public string SellPriceMinDateString => SellPriceMinDate.ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); + public string SellPriceMinDateString => DateTime.SpecifyKind(SellPriceMinDate, DateTimeKind.Utc).ToLocalTime().ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); public ulong SellPriceMax { get; set; } public string SellPriceMaxString => SellPriceMax.ToString("N0", new CultureInfo(LanguageController.CurrentLanguage)); public DateTime SellPriceMaxDate { get; set; } - public string SellPriceMaxDateString => SellPriceMaxDate.ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); + public string SellPriceMaxDateString => DateTime.SpecifyKind(SellPriceMaxDate, DateTimeKind.Utc).ToLocalTime().ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); public ulong BuyPriceMin { get; set; } public string BuyPriceMinString => BuyPriceMin.ToString("N0", new CultureInfo(LanguageController.CurrentLanguage)); public DateTime BuyPriceMinDate { get; set; } - public string BuyPriceMinDateString => BuyPriceMinDate.ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); + public string BuyPriceMinDateString => DateTime.SpecifyKind(BuyPriceMinDate, DateTimeKind.Utc).ToLocalTime().ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); public ulong BuyPriceMax { get; set; } public string BuyPriceMaxString => BuyPriceMax.ToString("N0", new CultureInfo(LanguageController.CurrentLanguage)); public DateTime BuyPriceMaxDate { get; set; } - public string BuyPriceMaxDateString => BuyPriceMaxDate.ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); + public string BuyPriceMaxDateString => DateTime.SpecifyKind(BuyPriceMaxDate, DateTimeKind.Utc).ToLocalTime().ToString("G", new CultureInfo(LanguageController.CurrentLanguage)); public bool BestSellMinPrice { get; set; } public bool BestSellMaxPrice { get; set; } public bool BestBuyMinPrice { get; set; } diff --git a/StatisticsAnalysisTool/StatisticsAnalysisTool/Properties/AssemblyInfo.cs b/StatisticsAnalysisTool/StatisticsAnalysisTool/Properties/AssemblyInfo.cs index 0336982cb..35cdce837 100644 --- a/StatisticsAnalysisTool/StatisticsAnalysisTool/Properties/AssemblyInfo.cs +++ b/StatisticsAnalysisTool/StatisticsAnalysisTool/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.4.*")] -[assembly: AssemblyFileVersion("1.1.4.0")] +[assembly: AssemblyVersion("1.1.5.*")] +[assembly: AssemblyFileVersion("1.1.5.0")]