Iso timestamp gives type object 'datetime.datetime' has no attribute 'datetime'
$ sudo python probemon.py -i wlan0 -t iso -o probemon.log -f -s -r
Traceback (most recent call last):
File "probemon.py", line 96, in
unix working fine, not sure if this is a local problem.
I have same error on Kali
@Dmeowmixer this fixes the problem https://github.com/nikharris0/probemon/pull/3/commits/c4920dbda3469f1c67c10f1e548886d78e87f3d1
On line 36 remove the second datetime:
log_time = datetime.now().isoformat()
This works but the date and time is messed up.
The following line 36:
log_time = datetime.fromtimestamp(int(time.time())).strftime('%Y-%m-%d %H:%M:%S')
works with the correct date and time.