MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
442 stars 155 forks source link

Unify date/time format and make it cultureInfo independent #524

Closed mnieto closed 1 year ago

mnieto commented 1 year ago

PR Summary

Fix #511 Date format in .github/moduleMessages.json is different than test/sampleFiles/moduleMessages.json Also the [DateTime]::Parse can throw execption depending on the current locale.

This change unifies the date format in _showModuleLoadingMessages function using ParseExact instead Parse

The field toDate in moduleMessages.json should have dd/MM/yyyy HH:mm:ss format

PR Checklist

SebastianSchuetze commented 1 year ago

Thanks for the fix!