Skip to content

Error during module import due to invalid message date #511

@scifimiki

Description

@scifimiki

Steps to reproduce

Import-Module VSTeam -Force -Verbose
$error[0]|format-list -force

Expected behavior

No errors during module import.

Actual behavior?

Exception : System.Management.Automation.MethodInvocationException: Exception calling "Parse" with "1"
argument(s): "String was not recognized as a valid DateTime." ---> System.FormatException:
String was not recognized as a valid DateTime.
ScriptStackTrace : at , C:\Program
Files\WindowsPowerShell\Modules\VSTeam\7.9.0\vsteam.functions.ps1: line 1154

Actual message line:
@{msg=Module Version 8.0.0 will stop supporting all TFS (2017,2018) versions. In the future it will also only keep the newest server versions in the support.; toDate=31/12/2099 23:59:59; displayFromVersion=7.4.0; displayToVersion=8.0.0; type=warning}

PS C:\windows\system32> [DateTime]::Parse("31/12/2098 23:59:59")
Exception calling "Parse" with "1" argument(s): "String was not recognized as a valid DateTime."

On Which OS have you tried it?

Windows

What was your server version?

Azure DevOps Services

Other server version

No response

Log output of used API

Billing                     :
Build                       : 3.0
Core                        : 3.0
DistributedTask             : 3.0-preview
DistributedTaskReleased     :
ExtensionsManagement        : 3.0-preview
Git                         : 3.0
Graph                       :
HierarchyQuery              :
MemberEntitlementManagement :
Packaging                   : 3.0-preview
Pipelines                   :
Policy                      : 3.0
Processes                   :
Release                     : 3.0-preview
ServiceEndpoints            : 3.0-preview
TaskGroups                  : 3.0-preview
Tfvc                        : 3.0
VariableGroups              :
Version                     : TFS2017
Wiki                        :
WorkItemTracking            : 3.0

Log output of $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.3866
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.3866
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwhen a bug has been identified or filed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions