-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
plugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
- a detailed description of the bug or suggestion
Last year, pytest add attribute to the JUnit test report. In the test report I can see the timestamp like
timestamp="2020-08-17T10:14:39.548365"
It looks like pytest just takes the system time from OS, and save it to test report.
Unfortunately, this timestamp doesn't have any timezone infomation, Our CI system will treat this timestamp as a UTC time, even the timestamp is actually from another time zone.
- pytest and operating system versions
pytest 5.2.1, I have seen the issue in both Linux and Windows
Is it possible to add timezone information to the timestamp attribute, or always use UTC time in timestamp?
Feuermurmel
Metadata
Metadata
Assignees
Labels
plugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch