diff --git a/iss.py b/iss.py index 044b370..4c888e2 100644 --- a/iss.py +++ b/iss.py @@ -18,7 +18,7 @@ def get_location(): iss = ephem.readtle(str(tle[0]), str(tle[1]), str(tle[2])) # Compute for now - now = datetime.datetime.utcnow() + now = datetime.datetime.now(timezone.utc) iss.compute(now) lon = degrees(iss.sublong) lat = degrees(iss.sublat) @@ -60,7 +60,7 @@ def get_passes(lon, lat, alt, n): location.horizon = '10:00' # Set time now - now = datetime.datetime.utcnow() + now = datetime.datetime.now(timezone.utc) location.date = now # Predict passes