Skip to content
Snippets Groups Projects
Commit c75b40ab authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Use datetime instead of date

parent 9d847fb6
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ config = configparser.ConfigParser() ...@@ -34,7 +34,7 @@ config = configparser.ConfigParser()
config.read("PSILARTEMP.cfg") config.read("PSILARTEMP.cfg")
local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE")) local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE"))
today = datetime.now(local_timezone).date() today = datetime.now(local_timezone)
if len(sys.argv) > 1: if len(sys.argv) > 1:
year = int(sys.argv[1]) year = int(sys.argv[1])
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment