Fix time formatter date string, remove useless field from whois

This commit is contained in:
Stijn De Clercq 2020-12-23 00:32:33 +01:00
parent d8663bed38
commit 416b13c9ac
2 changed files with 4 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import dateutil.relativedelta
import pytz
def epochToDate(epochTimeStamp, strFormat="%m/%d/%Y om %H:%M:%S"):
def epochToDate(epochTimeStamp, strFormat="%d/%m/%Y om %H:%M:%S"):
now = dateTimeNow()
updateTime = datetime.datetime.fromtimestamp(int(epochTimeStamp), pytz.timezone("Europe/Brussels"))
diff = now - updateTime