linux/generate-cve-exclusions: print the generated time in UTC

Allow time comparisons to be made regardless of where the script was run.

(From OE-Core rev: 018e74f2ce0b1a4c0614c99bc19f07f787d61123)

Signed-off-by: Yuta Hayama <hayama@lineo.co.jp>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yuta Hayama
2023-09-05 16:29:07 +09:00
committed by Richard Purdie
parent 71d83f653a
commit dd2e4f417c

View File

@@ -44,7 +44,7 @@ def main(argp=None):
print(f"""
# Auto-generated CVE metadata, DO NOT EDIT BY HAND.
# Generated at {datetime.datetime.now()} for version {version}
# Generated at {datetime.datetime.now(datetime.timezone.utc)} for version {version}
python check_kernel_cve_status_version() {{
this_version = "{version}"