Skip to content

Time issue #25

@greenpp88

Description

@greenpp88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions