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(): ...@@ -106,7 +106,10 @@ def main():
else: else:
src.globalvars.facts = old_facts src.globalvars.facts = old_facts
else: 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 # Create result directory if we save or summarize results
need_resultdir = not (args.nosum and args.dont_save) 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