diff --git a/pysp2/io/read_sp2b.py b/pysp2/io/read_sp2b.py index 7d5b7d8..1b2b491 100644 --- a/pysp2/io/read_sp2b.py +++ b/pysp2/io/read_sp2b.py @@ -119,7 +119,8 @@ def read_sp2(file_name, debug=False, arm_convention=True): diff_epoch_1904 = ( datetime(1970, 1, 1) - datetime(1904, 1, 1)).total_seconds() UTCdatetime = np.array([ - datetime.fromtimestamp(x - diff_epoch_1904, timezone.utc) for x in UTCtime]) + datetime.fromtimestamp( + x - diff_epoch_1904, tz=timezone.utc).replace(tzinfo=None) for x in UTCtime]) DateTimeWave = (dt - datetime(1904, 1, 1)).total_seconds() + TimeWave