Commit 2f846b27 authored by wnagele's avatar wnagele

Fixes 'TypeError: can't compare offset-naive and offset-aware datetimes'

Signed-off-by: wnagele's avatarWolfgang Nagele <mail@wnagele.com>
parent 3d4e894c
Pipeline #53839929 passed with stages
in 4 minutes and 50 seconds
......@@ -158,7 +158,8 @@ class WorkerTrack(Worker):
str(satellite_dict["tle0"]), str(satellite_dict["tle1"]),
str(satellite_dict["tle2"]))
timestamp_max = ephem.Date(observer.next_pass(satellite)[2]).datetime()
timestamp_max = pytz.utc.localize(
ephem.Date(observer.next_pass(satellite)[2]).datetime())
pin = pinpoint(observer_dict, satellite_dict, timestamp_max)
azi_max = pin["az"].conjugate() * 180 / math.pi
alt_max = pin["alt"].conjugate() * 180 / math.pi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment