mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix time formatter date string, remove useless field from whois
This commit is contained in:
parent
d8663bed38
commit
416b13c9ac
2 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue