Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To at least partly address timezone in timestamps as discussed in
#3061
and
https://groups.google.com/forum/#!topic/robotframework-users/Wtg8EYwNVJ8
proposing the addition of two options as detailed in usage.
-z --xoutputtimeinfo Include system timezone and daylight saving time in output.xml status elements so the timestamp are definitive.
--formattimestamp iso8601utc Provide a format for the timestamp. iso8601utc: Formatted as "%Y-%m-%dT%H:%M:%S.%fZ" e.g. 2020-09-10T06:17:37.831Z
The resultant output with both options is
<status> status="PASS" starttime="2020-09-10T07:37:25.717Z" endtime="2020-09-10T07:37:26.170Z" timezone="10.0" dst="0"></status>
The more important of the two is the timestamp format, and the intent is that eventually the robottime module could evolve to allow arbitrary timestamp formats including ones with +/- timezones as per iso8601, e.g. 2020-09-10T07:52:07+10:00, at which point the other status attributes could be considered redundant.
I have not considered or tested side effects for rebot, but when run against a single output.xml file rebot resulted in html files with utc times.
e.g.
Status: All tests passed
Documentation: A suite of tests with tagged tests
Start Time: 20200910 07:54:24.615
End Time: 20200910 07:54:25.093
Elapsed Time: 00:00:00.478
Log File: log.html