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).
return datetime.utcfromtimestamp(block_time).strftime('%Y-%m-%d %H:%M:%S UTC')
Hello
From Get_First_Transaction .py
I have this issue.
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). return datetime.utcfromtimestamp(block_time).strftime('%Y-%m-%d %H:%M:%S UTC')
pls tell me how to fix this.
Thank you