mirror of
https://github.com/craigerl/aprsd.git
synced 2026-08-28 23:05:41 -04:00
Both APIs are deprecated since Python 3.12 and scheduled for removal.
- aprsd/packets/core.py: datetime.utcfromtimestamp(ts)
-> datetime.fromtimestamp(ts, tz=timezone.utc)
- aprsd/plugins/time.py: pytz.datetime.datetime.utcnow()
-> datetime.now(timezone.utc).replace(tzinfo=None)
(naive UTC returned to preserve pytz.utc.localize() contract)
- tests/plugins/test_time.py: same fix in test setup
Closes #249