Display seconds since epoch using a more widely supported method
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do?
Replaces $(date +%s) in the 'section start' and 'section end' output with $(awk 'BEGIN{srand(); print srand()}'). These are used to show the number of seconds since the epoch.
Why was this MR needed?
z/OS does not support the %s format for date.
What's the best way to test this MR?
Integration tests should catch this. This change was tested to be working on z/OS already.
What are the relevant issue numbers?
Edited by Kai McGregor