Skip to content

Commit

Permalink
Remove an old workaround for date parsing
Browse files Browse the repository at this point in the history
It was needed 7 years ago when "cm" didn't use fully standard ISO date formats, but was already unneeded in 2020
  • Loading branch information
SRombautsU committed Sep 25, 2023
1 parent 891ceff commit e902737
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e902737

Please sign in to comment.