-
-
Notifications
You must be signed in to change notification settings - Fork 295
Closed
Labels
Description
Describe the bug
Report Generator changes the Cobertura report timestamp from UTC to Local time. It should keep it as UTC.
To Reproduce
- Generate a dotnet test result from a unit test project:
dotnet test MyProject.UnitTests.csproj --logger trx --configuration Release --no-restore --collect:"XPlat Code Coverage" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
-
Check the resulting
coverage.cobertura.xml
file and see that the timestamp is on Unix Epoch Timestamp (which is always UTC). -
Run the report generator:
reportgenerator -reports:'MyProject.UnitTests\TestResults\*\coverage.cobertura.xml' -targetdir:'CoverageResults' -reporttypes:'Cobertura' -filefilters:'+*.cs' -verbosity:'Warning'
- The resulting report in the folder
CoverageResults
now has a timestamp which is in the local time zone. There is no time zone value in the timestamp, so there is no way of knowing in which time zone the report is generated. Therefore, it should always be in UTC.