From 83bdd72bfedccdcf42436057a7915ac3bf453d98 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Sep 2020 22:53:57 +1000 Subject: [PATCH] fixed some windows specific stuff --- MainWindow.cs | 3 ++- YahooAuctionsItem.cs | 2 +- ui/main.glade | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MainWindow.cs b/MainWindow.cs index 11b6a24..fe78527 100755 --- a/MainWindow.cs +++ b/MainWindow.cs @@ -171,7 +171,8 @@ namespace Buypeeb { Directory.CreateDirectory(this.location); } if (!File.Exists(p)) { - File.CreateText(p); + var fs = File.CreateText(p); + fs.Close(); } File.WriteAllText(System.IO.Path.Combine(this.location, "userdata.json"), j); } diff --git a/YahooAuctionsItem.cs b/YahooAuctionsItem.cs index ee011fe..a1b88a5 100644 --- a/YahooAuctionsItem.cs +++ b/YahooAuctionsItem.cs @@ -77,7 +77,7 @@ namespace Buypeeb { throw e; } - var jst = TimeZoneInfo.FindSystemTimeZoneById("Asia/Tokyo"); + var jst = TimeZoneInfo.CreateCustomTimeZone("JST", new TimeSpan(9, 0, 0), "Japan Standard Time", "Japen Standard Time"); var j = j_full["items"]; this.originalName = j["productName"]; diff --git a/ui/main.glade b/ui/main.glade index eb6c02d..9de5837 100644 --- a/ui/main.glade +++ b/ui/main.glade @@ -172,7 +172,7 @@ True - False + True False Save Save