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