diff --git a/pio_package_pre.py b/pio_package_pre.py index 7659975..4cccda2 100644 --- a/pio_package_pre.py +++ b/pio_package_pre.py @@ -6,7 +6,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)