Skip to content

Commit e39298d

Browse files
committed
Use timestamp variable in the status field of the benchmark.
1 parent 0d948bd commit e39298d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ssg/build_yaml.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -742,10 +742,7 @@ def _create_benchmark_xml_skeleton(self, env_yaml):
742742
root.set('xml:lang', 'en-US')
743743

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

751748
add_sub_element(root, "title", XCCDF12_NS, self.title)

0 commit comments

Comments
 (0)