From e9027374ca00af51a2537fcb1753270418eeea22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Mon, 25 Sep 2023 12:33:32 +0200 Subject: [PATCH] Remove an old workaround for date parsing It was needed 7 years ago when "cm" didn't use fully standard ISO date formats, but was already unneeded in 2020 --- .../Private/PlasticSourceControlUtils.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/PlasticSourceControl/Private/PlasticSourceControlUtils.cpp b/Source/PlasticSourceControl/Private/PlasticSourceControlUtils.cpp index da2acc96..6da863a9 100644 --- a/Source/PlasticSourceControl/Private/PlasticSourceControlUtils.cpp +++ b/Source/PlasticSourceControl/Private/PlasticSourceControlUtils.cpp @@ -1411,14 +1411,7 @@ static bool ParseHistoryResults(const bool bInUpdateHistory, const FXmlFile& InX } if (const FXmlNode* DateNode = RevisionNode->FindChildNode(CreationDate)) { - FString DateIso = DateNode->GetContent(); - const int len = DateIso.Len(); - if (DateIso.Len() > 29) - { // |--| - // 2016-04-18T10:44:49.0000000+02:00 - // => 2016-04-18T10:44:49.000+02:00 - DateIso = DateNode->GetContent().LeftChop(10) + DateNode->GetContent().RightChop(27); - } + const FString& DateIso = DateNode->GetContent(); FDateTime::ParseIso8601(*DateIso, SourceControlRevision->Date); } if (const FXmlNode* BranchNode = RevisionNode->FindChildNode(Branch))