From eedb37f4d641645ef4f39865486a776cbc0db2df Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Wed, 1 May 2019 17:07:21 -0700 Subject: [PATCH] Update width of datetime to accommodate change in Japan datetime format with new era starting 5/1/19 (#9503) --- .../DefaultFormatters/Diagnostics_Format_ps1xml.cs | 2 +- .../DefaultFormatters/DotNetTypes_format_ps1xml.cs | 4 ++-- .../FormatAndOutput/DefaultFormatters/Event_Format_ps1xml.cs | 2 +- .../DefaultFormatters/FileSystem_format_ps1xml.cs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Diagnostics_Format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Diagnostics_Format_ps1xml.cs index 712977f765..6c6bc97793 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Diagnostics_Format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Diagnostics_Format_ps1xml.cs @@ -22,7 +22,7 @@ namespace System.Management.Automation.Runspaces { yield return new FormatViewDefinition("Counter", TableControl.Create() - .AddHeader(Alignment.Left, label: "Timestamp", width: 25) + .AddHeader(Alignment.Left, label: "Timestamp", width: 26) .AddHeader(Alignment.Left, label: "CounterSamples", width: 100) .StartRowDefinition(wrap: true) .AddPropertyColumn("Timestamp") diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/DotNetTypes_format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/DotNetTypes_format_ps1xml.cs index 977c9649e0..040de0994c 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/DotNetTypes_format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/DotNetTypes_format_ps1xml.cs @@ -1009,7 +1009,7 @@ namespace System.Management.Automation.Runspaces .AddHeader(label: "Description", width: 16) .AddHeader(label: "HotFixID", width: 13) .AddHeader(label: "InstalledBy", width: 20) - .AddHeader(label: "InstalledOn", width: 25) + .AddHeader(label: "InstalledOn", width: 26) .StartRowDefinition() .AddPropertyColumn("__SERVER") .AddPropertyColumn("Description") @@ -1028,7 +1028,7 @@ namespace System.Management.Automation.Runspaces .AddHeader(label: "Description", width: 16) .AddHeader(label: "HotFixID", width: 13) .AddHeader(label: "InstalledBy", width: 20) - .AddHeader(label: "InstalledOn", width: 25) + .AddHeader(label: "InstalledOn", width: 26) .StartRowDefinition() .AddPropertyColumn("ComputerName") .AddPropertyColumn("Description") diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Event_Format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Event_Format_ps1xml.cs index b68e036edc..a68c82024b 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Event_Format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/Event_Format_ps1xml.cs @@ -27,7 +27,7 @@ namespace System.Management.Automation.Runspaces yield return new FormatViewDefinition("Default", TableControl.Create() .GroupByProperty("ProviderName", label: "ProviderName") - .AddHeader(width: 25) + .AddHeader(width: 26) .AddHeader(Alignment.Right, width: 8) .AddHeader(width: 16) .AddHeader() diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/FileSystem_format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/FileSystem_format_ps1xml.cs index 183262b2a5..31a15c600f 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/FileSystem_format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/FileSystem_format_ps1xml.cs @@ -46,7 +46,7 @@ namespace System.Management.Automation.Runspaces TableControl.Create() .GroupByProperty("PSParentPath", customControl: sharedControls[0]) .AddHeader(Alignment.Left, label: "Mode", width: 7) - .AddHeader(Alignment.Right, label: "LastWriteTime", width: 25) + .AddHeader(Alignment.Right, label: "LastWriteTime", width: 26) .AddHeader(Alignment.Right, label: "Length", width: 14) .AddHeader(Alignment.Left, label: "Name") .StartRowDefinition(wrap: true) @@ -61,7 +61,7 @@ namespace System.Management.Automation.Runspaces TableControl.Create() .GroupByProperty("PSParentPath", customControl: sharedControls[0]) .AddHeader(Alignment.Left, label: "Mode", width: 7) - .AddHeader(Alignment.Right, label: "LastWriteTime", width: 25) + .AddHeader(Alignment.Right, label: "LastWriteTime", width: 26) .AddHeader(Alignment.Right, label: "Length", width: 14) .AddHeader(Alignment.Left, label: "Name") .StartRowDefinition(wrap: true)