AttributeError: 'datetime.timezone' object has no attribute 'localize'

Issue #568 resolved
Reimar Bauer created an issue

That was a pytest on stable

File "/home/user/MASTER/mss/mslib/msui/remotesensing_dockwidget.py", line 130, in update_settings
self.view.set_remote_sensing_appearance(settings)
File "/home/user/MASTER/mss/mslib/msui/mpl_qtwidget.py", line 1198, in set_remote_sensing_appearance
self.waypoints_interactor.redraw_path()
File "/home/user/MASTER/mss/mslib/msui/mpl_pathinteractor.py", line 1034, in redraw_path
self.map, wp_vertices, wp_heights, wp_times, self.show_solar_angle)
File "/home/user/MASTER/mss/mslib/msui/remotesensing_dockwidget.py", line 235, in compute_solar_lines
sol_azi, sol_ele = self.compute_body_angle(body, times[i], p0[0], p0[1])
File "/home/user/MASTER/mss/mslib/msui/remotesensing_dockwidget.py", line 111, in compute_body_angle
t = self.timescale.utc(utc.localize(jsec_to_datetime(jsec)))
AttributeError: 'datetime.timezone' object has no attribute 'localize'

Comments (9)

  1. Log in to comment