Skip to content

Commit

Permalink
Use timestamp variable in the status field of the benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbecker committed Jan 15, 2025
1 parent 0d948bd commit e39298d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ssg/build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,7 @@ def _create_benchmark_xml_skeleton(self, env_yaml):
root.set('xml:lang', 'en-US')

status = ET.SubElement(root, '{%s}status' % XCCDF12_NS)
status.set(
'date',
time.strftime("%Y-%m-%d",
time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))))
status.set('date', timestamp)
status.text = self.status

add_sub_element(root, "title", XCCDF12_NS, self.title)
Expand Down

0 comments on commit e39298d

Please sign in to comment.