Bug 8253 - tlctl load relies on deprecated datetime.utcfromtimestamp()
Summary: tlctl load relies on deprecated datetime.utcfromtimestamp()
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-10 16:06 CET by Samuel Mannehed
Modified: 2023-11-14 13:12 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Samuel Mannehed cendio 2023-11-10 16:06:47 CET
On Fedora 39, which has Python 3.12, we get the following warning when running `tlctl load show 127.0.0.1`:

> [cendio@lab-248 ~]$ sudo tlctl load show 127.0.0.1
> /opt/thinlinc/modules/thinlinc/tlctl/load.py:357: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
>   Ii1iIII11i = datetime . utcfromtimestamp ( data [ oo0OoOoO0O0OO ] )
> /opt/thinlinc/modules/thinlinc/tlctl/load.py:358: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>   oo000OO0ooO = datetime . utcnow ( ) - Ii1iIII11i

Note You need to log in before you can comment on or make changes to this bug.