make all timestamps UTC

This commit is contained in:
Em 2021-07-08 09:47:14 -04:00
parent b4dc2c9196
commit 574792b8f2
1 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ async def add(request):
proxy["ip"],
int(proxy["port"]),
proxy["proxy_type"],
datetime.now(),
datetime.now(tz='UTC'),
proxy.get("comment", ""),
)
)
@ -68,7 +68,7 @@ async def getproxies(request):
select_query,
["unscanned"],
max_num_failures,
datetime.now(),
datetime.now(tz='UTC'),
proxy_types,
amount,
)
@ -79,7 +79,7 @@ async def getproxies(request):
select_query,
["active", "inactive"],
max_num_failures,
datetime.now() - timedelta(seconds=tdelta),
datetime.now(tz='UTC') - timedelta(seconds=tdelta),
proxy_types,
amount - len(proxies),
)
@ -111,7 +111,7 @@ async def updateproxies(request):
proxy["exit_ip"],
proxy["proxy_type"],
proxy["status"],
datetime.now(),
datetime.now(tz='UTC'),
proxy["comment"],
proxy["id"]
)
@ -119,7 +119,7 @@ async def updateproxies(request):
await connection.fetch(
update_inactive_query,
proxy["status"],
datetime.now(),
datetime.now(tz='UTC'),
proxy["comment"],
proxy["id"]
)