From f28070f01570a174dacde1182ec6f689d315b2c2 Mon Sep 17 00:00:00 2001 From: ddemeyer Date: Fri, 26 Jan 2024 17:17:54 +0100 Subject: [PATCH] #157 Get-IshBaselineItem parses incoming ModifiedOn and CreatedOn values using CurrentCulture instead resulting in Month Day swapping for some Regional Settings ... Again Regional Options issues on the build server plus actual fix for BaselineItem datetimes parsing --- .../Trisoft.ISHRemote/Objects/Public/IshBaselineItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ISHRemote/Trisoft.ISHRemote/Objects/Public/IshBaselineItem.cs b/Source/ISHRemote/Trisoft.ISHRemote/Objects/Public/IshBaselineItem.cs index 4ecb9c12..8a0707e4 100644 --- a/Source/ISHRemote/Trisoft.ISHRemote/Objects/Public/IshBaselineItem.cs +++ b/Source/ISHRemote/Trisoft.ISHRemote/Objects/Public/IshBaselineItem.cs @@ -78,7 +78,7 @@ public IshBaselineItem(string baselineId, XmlElement xmlIshBaselineItem) DateTime createdOn; CreatedOn = NameHelper.TryParseDateTimeExact(xmlIshBaselineItem.Attributes["created"].Value, out createdOn) ? createdOn : DateTime.MinValue; DateTime modifiedOn; - ModifiedOn = = NameHelper.TryParseDateTimeExact(xmlIshBaselineItem.Attributes["modified"].Value, out modifiedOn) ? modifiedOn : DateTime.MinValue; + ModifiedOn = NameHelper.TryParseDateTimeExact(xmlIshBaselineItem.Attributes["modified"].Value, out modifiedOn) ? modifiedOn : DateTime.MinValue; } ///