From 32969a4d86af615abc0c81811df6292f1a58d67b Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 18 Sep 2019 15:06:45 -0700 Subject: [PATCH] Switch save timestamp display to 24h clock Closes #2388 thanks @fattard ! Now shows seconds instead of AM/PM "hh:mm tt" -> "HH:mm:ss" --- .../Subforms/Save Editors/Gen6/SAV_Trainer.Designer.cs | 6 +++--- PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.cs | 2 +- .../Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs | 6 +++--- PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs | 2 +- .../Subforms/Save Editors/SAV_SimpleTrainer.Designer.cs | 4 ++-- PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.cs | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.Designer.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.Designer.cs index e996d452e..f85110397 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.Designer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.Designer.cs @@ -1375,7 +1375,7 @@ private void InitializeComponent() // // CAL_HoFTime // - this.CAL_HoFTime.CustomFormat = "hh:mm tt"; + this.CAL_HoFTime.CustomFormat = "HH:mm:ss"; this.CAL_HoFTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_HoFTime.Location = new System.Drawing.Point(115, 91); this.CAL_HoFTime.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1408,7 +1408,7 @@ private void InitializeComponent() // // CAL_AdventureStartTime // - this.CAL_AdventureStartTime.CustomFormat = "hh:mm tt"; + this.CAL_AdventureStartTime.CustomFormat = "HH:mm:ss"; this.CAL_AdventureStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_AdventureStartTime.Location = new System.Drawing.Point(115, 54); this.CAL_AdventureStartTime.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1421,7 +1421,7 @@ private void InitializeComponent() // // CAL_LastSavedTime // - this.CAL_LastSavedTime.CustomFormat = "hh:mm tt"; + this.CAL_LastSavedTime.CustomFormat = "HH:mm:ss"; this.CAL_LastSavedTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_LastSavedTime.Location = new System.Drawing.Point(115, 129); this.CAL_LastSavedTime.MaxDate = new System.DateTime(4095, 12, 31, 0, 0, 0, 0); diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.cs index 65773043f..e8163e80e 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_Trainer.cs @@ -223,7 +223,7 @@ private void GetTextBoxes() CAL_AdventureStartDate.Value = date; CAL_AdventureStartTime.Value = time; - Util.GetDateTime2000(SAV.SecondsToStart, out date, out time); + Util.GetDateTime2000(SAV.SecondsToFame, out date, out time); CAL_HoFDate.Value = date; CAL_HoFTime.Value = time; } diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs index f2aed47ad..ad0386247 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs @@ -1003,7 +1003,7 @@ private void InitializeComponent() // // CAL_HoFTime // - this.CAL_HoFTime.CustomFormat = "hh:mm tt"; + this.CAL_HoFTime.CustomFormat = "HH:mm:ss"; this.CAL_HoFTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_HoFTime.Location = new System.Drawing.Point(115, 91); this.CAL_HoFTime.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1036,7 +1036,7 @@ private void InitializeComponent() // // CAL_AdventureStartTime // - this.CAL_AdventureStartTime.CustomFormat = "hh:mm tt"; + this.CAL_AdventureStartTime.CustomFormat = "HH:mm:ss"; this.CAL_AdventureStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_AdventureStartTime.Location = new System.Drawing.Point(115, 54); this.CAL_AdventureStartTime.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1049,7 +1049,7 @@ private void InitializeComponent() // // CAL_LastSavedTime // - this.CAL_LastSavedTime.CustomFormat = "hh:mm tt"; + this.CAL_LastSavedTime.CustomFormat = "HH:mm:ss"; this.CAL_LastSavedTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_LastSavedTime.Location = new System.Drawing.Point(115, 129); this.CAL_LastSavedTime.MaxDate = new System.DateTime(4095, 12, 31, 0, 0, 0, 0); diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs index f88ea8184..1812f64b7 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs @@ -151,7 +151,7 @@ private void GetTextBoxes() CAL_AdventureStartDate.Value = date; CAL_AdventureStartTime.Value = time; - Util.GetDateTime2000(SAV.SecondsToStart, out date, out time); + Util.GetDateTime2000(SAV.SecondsToFame, out date, out time); CAL_HoFDate.Value = date; CAL_HoFTime.Value = time; diff --git a/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.Designer.cs b/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.Designer.cs index c0c5925bf..fabd30010 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.Designer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.Designer.cs @@ -245,7 +245,7 @@ private void InitializeComponent() // // CAL_AdventureStartTime // - this.CAL_AdventureStartTime.CustomFormat = "hh:mm tt"; + this.CAL_AdventureStartTime.CustomFormat = "HH:mm:ss"; this.CAL_AdventureStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_AdventureStartTime.Location = new System.Drawing.Point(116, 70); this.CAL_AdventureStartTime.MaxDate = new System.DateTime(4095, 12, 31, 0, 0, 0, 0); @@ -258,7 +258,7 @@ private void InitializeComponent() // // CAL_HoFTime // - this.CAL_HoFTime.CustomFormat = "hh:mm tt"; + this.CAL_HoFTime.CustomFormat = "HH:mm:ss"; this.CAL_HoFTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_HoFTime.Location = new System.Drawing.Point(116, 126); this.CAL_HoFTime.MaxDate = new System.DateTime(4095, 12, 31, 0, 0, 0, 0); diff --git a/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.cs b/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.cs index dd6d0fb35..417432ef9 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/SAV_SimpleTrainer.cs @@ -155,7 +155,7 @@ public SAV_SimpleTrainer(SaveFile sav) CAL_AdventureStartDate.Value = date; CAL_AdventureStartTime.Value = time; - Util.GetDateTime2000(SAV.SecondsToStart, out date, out time); + Util.GetDateTime2000(SAV.SecondsToFame, out date, out time); CAL_HoFDate.Value = date; CAL_HoFTime.Value = time;