better date formatting in log file

This commit is contained in:
xenofem 2022-02-08 11:59:36 -05:00
parent a8a2009923
commit 3395739932

View file

@ -80,7 +80,7 @@ else:
def current_val():
result = current_val_helper()
if log_file:
print('{},{}'.format(datetime.datetime.now(datetime.timezone.utc), result), file=log_file)
print('{},{}'.format(datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S"), result), file=log_file)
return result
if args.final: