From 9ba0948594e8f3717e0c77254fb017ee1dc6b178 Mon Sep 17 00:00:00 2001 From: iranl Date: Thu, 1 Aug 2024 19:27:31 +0200 Subject: [PATCH] Update pio_package_pre_solo1.py --- updater/pio_package_pre_solo1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater/pio_package_pre_solo1.py b/updater/pio_package_pre_solo1.py index ad5b255..b04f92e 100644 --- a/updater/pio_package_pre_solo1.py +++ b/updater/pio_package_pre_solo1.py @@ -36,7 +36,7 @@ content_new = "" with open ('src/Config.h', 'r' ) as readfile: file_content = readfile.read() - content_new = re.sub(regex, "#define NUKI_HUB_DATE \"" + datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") + "\"", file_content, flags = re.M) + content_new = re.sub(regex, "#define NUKI_HUB_DATE \"" + datetime.now(timezone.utc).strftime("%Y-%m-%d") + "\"", file_content, flags = re.M) with open('src/Config.h', 'w') as writefile: - writefile.write(content_new) \ No newline at end of file + writefile.write(content_new)