replace utcnow() with now()
This commit is contained in:
parent
74201e59d6
commit
82c3d9d8a6
@ -108,7 +108,7 @@ def exec_command(args, outfile, errfile, resfile):
|
||||
proc.terminate()
|
||||
proc.communicate(timeout=10)
|
||||
|
||||
now=datetime.datetime.utcnow()
|
||||
now=datetime.datetime.now()
|
||||
nowstr=now.strftime('%Y-%m-%d_%H%M.%S')
|
||||
resfile.write('{}\n{}'.format(nowstr, proc.returncode))
|
||||
return proc.returncode
|
||||
@ -171,7 +171,7 @@ def print_runs(runs, clean=True):
|
||||
def main():
|
||||
time_format = '%Y-%m-%d_%H%M'
|
||||
args = parse_args()
|
||||
now = datetime.datetime.utcnow()
|
||||
now = datetime.datetime.now()
|
||||
nowstr = now.strftime(time_format)
|
||||
libdir = os.path.join(args.cachedir[0], args.name, nowstr)
|
||||
lckdir = os.path.join(args.lockdir[0], args.name)
|
||||
|
Loading…
Reference in New Issue
Block a user