From 2f0c9123886eabcf29ce5d35017b5d829913cc32 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sat, 1 Oct 2022 09:22:09 +0200 Subject: [PATCH] Exclude decimals in BUILD_EPOCH flag --- scripts/addversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/addversion.py b/scripts/addversion.py index 47fc1d48..c2295ea4 100644 --- a/scripts/addversion.py +++ b/scripts/addversion.py @@ -19,6 +19,6 @@ hf = """ #define VERSION "{}" #endif #define BUILD_EPOCH {} -""".format(version, time()) +""".format(version, round(time())) with open(FILENAME_VERSION_H, 'w+') as f: f.write(hf)