Commit 073c25d6 authored by Florian Fischer's avatar Florian Fischer
Browse files

don't use isoformat(timespec=) for python3 < 3.6

parent 88bed261
......@@ -106,7 +106,10 @@ def main():
else:
src.globalvars.facts = old_facts
else:
src.globalvars.facts["starttime"] = datetime.datetime.now().isoformat(timespec="minutes")
start_time = datetime.datetime.now().isoformat()
# strip seconds from string
start_time = start_time[:start_time.rfind(':')]
src.globalvars.facts["starttime"] = start_time
# Create result directory if we save or summarize results
need_resultdir = not (args.nosum and args.dont_save)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment