diff --git a/spotproviders/sota.py b/spotproviders/sota.py index f07a779..56026d1 100644 --- a/spotproviders/sota.py +++ b/spotproviders/sota.py @@ -46,7 +46,7 @@ class SOTA(HTTPSpotProvider): comment=source_spot["comments"], sig="SOTA", sig_refs=[SIGRef(id=source_spot["summitCode"], sig="SOTA", name=source_spot["summitName"], activation_score=source_spot["points"])], - time=datetime.fromisoformat(source_spot["timeStamp"]).timestamp()) + time=datetime.fromisoformat(source_spot["timeStamp"].replace("Z", "+00:00")).timestamp()) # Add to our list. Don't worry about de-duping, removing old spots etc. at this point; other code will do # that for us. diff --git a/spotproviders/wwbota.py b/spotproviders/wwbota.py index 16b0758..d2d8d11 100644 --- a/spotproviders/wwbota.py +++ b/spotproviders/wwbota.py @@ -30,7 +30,7 @@ class WWBOTA(SSESpotProvider): comment=source_spot["comment"], sig="WWBOTA", sig_refs=refs, - time=datetime.fromisoformat(source_spot["time"]).timestamp(), + time=datetime.fromisoformat(source_spot["time"].replace("Z", "+00:00")).timestamp(), # WWBOTA spots can contain multiple references for bunkers being activated simultaneously. For # now, we will just pick the first one to use as our grid, latitude and longitude. dx_grid=source_spot["references"][0]["locator"], diff --git a/spotproviders/zlota.py b/spotproviders/zlota.py index 3944201..62103d3 100644 --- a/spotproviders/zlota.py +++ b/spotproviders/zlota.py @@ -35,7 +35,7 @@ class ZLOTA(HTTPSpotProvider): comment=source_spot["comments"], sig="ZLOTA", sig_refs=[SIGRef(id=source_spot["reference"], sig="ZLOTA", name=source_spot["name"])], - time=datetime.fromisoformat(source_spot["referenced_time"]).astimezone(pytz.UTC).timestamp()) + time=datetime.fromisoformat(source_spot["referenced_time"].replace("Z", "+00:00")).astimezone(pytz.UTC).timestamp()) new_spots.append(spot) return new_spots