Skip to content

Commit

Permalink
Update pio_package_pre.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iranl authored Aug 1, 2024
1 parent 9ba0948 commit 331ff3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updater/pio_package_pre.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

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)

shutil.copy("../src/main.cpp", "src/main.cpp")
shutil.copy("../src/main.cpp", "src/main.cpp")

0 comments on commit 331ff3e

Please sign in to comment.