Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mapadroid/db/DbWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def get_gyms_in_rectangle(self, ne_lat, ne_lon, sw_lat, sw_lon, o_ne_lat=None, o
for (gym_id, latitude, longitude, name, url, team_id, last_updated,
level, spawn, start, end, mon_id, form, costume, evolution, last_scanned) in res:

nowts = datetime.utcfromtimestamp(time.time()).timestamp()
nowts = datetime.now(tz=timezone.utc).timestamp()

# check if we found a raid and if it's still active
if end is None or nowts > int(end.replace(tzinfo=timezone.utc).timestamp()):
Expand Down