diff --git a/proxmark3-web.py b/proxmark3-web.py
index 1baf585..22bb8f9 100755
--- a/proxmark3-web.py
+++ b/proxmark3-web.py
@@ -90,7 +90,7 @@ if(True):
#return 'Hello, World!\n
Raw Card Number:' + raw_cardnumber + '
Card ID:' + card_number + ' FC:' + facility_code
card = get_card_data(cardnumber.stdout.decode('ASCII'))
print(card)
- current_time = str(datetime.now())
+ current_time = datetime.now().isoformat(timespec='seconds')
print(current_time + ' _Card Used_ ' + card, file=open(logfile, "a"))
return render_template('main.html',
card_number=card['card_number'],
@@ -111,7 +111,7 @@ if(True):
if('HID Prox TAG ID:' in cardnumber.stdout.decode('ASCII')):
card = get_card_data(cardnumber.stdout.decode('ASCII'))
print(card)
- current_time = str(datetime.now())
+ current_time = datetime.now().isoformat(timespec='seconds')
print(current_time + ' _Card Used_ ' + card, file=open(logfile, "a"))
card_read=1
#return 'Hello, World!\n
Raw Card Number:' + raw_cardnumber + '
Card ID:' + card_number + ' FC:' + facility_code