Update pio_package_pre_solo1.py

This commit is contained in:
iranl
2024-08-01 19:27:31 +02:00
committed by GitHub
parent bc3644a230
commit 9ba0948594

View File

@@ -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)
writefile.write(content_new)