Skip to content

Commit 62495a3

Browse files
committed
#750: Cobertura reports now contain timestamp in UTC format
1 parent e3be063 commit 62495a3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ For further details take a look at LICENSE.txt.
6767

6868
CHANGELOG
6969

70-
5.4.9.0
70+
5.4.12.0
71+
72+
* Fix: #750: Cobertura reports now contain timestamp in UTC format
73+
74+
5.4.10.0
7175

72-
* Fix: #746: Improved "raw mode" (settings:rawMode=true): Leave method names unchanged
76+
* New: #746: Improved "raw mode" (settings:rawMode=true): Leave method names unchanged
7377

7478
5.4.9.0
7579

src/ReportGenerator.Core/Reporting/Builders/CoberturaReportBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void CreateSummaryReport(SummaryResult summaryResult)
211211
rootElement.Add(new XAttribute("branches-valid", summaryResult.TotalBranches.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)));
212212
rootElement.Add(new XAttribute("complexity", summaryComplexity.HasValue ? summaryComplexity.Value.ToString(CultureInfo.InvariantCulture) : "NaN"));
213213
rootElement.Add(new XAttribute("version", 0));
214-
rootElement.Add(new XAttribute("timestamp", ((long)(DateTime.Now - new DateTime(1970, 1, 1)).TotalSeconds).ToString(CultureInfo.InvariantCulture)));
214+
rootElement.Add(new XAttribute("timestamp", ((long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds).ToString(CultureInfo.InvariantCulture)));
215215

216216
var sourcesElement = new XElement("sources");
217217

0 commit comments

Comments
 (0)