Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dateutil #53

Open
laszewsk opened this issue Dec 17, 2023 · 1 comment
Open

dateutil #53

laszewsk opened this issue Dec 17, 2023 · 1 comment

Comments

@laszewsk
Copy link
Member

laszewsk commented Dec 17, 2023

dateutil is using deprectaed tz.
We either weit for dateutil to fix this or at one point just not using it

for now ew added to ignore the warnin in the pytests

filterwarnings =
    ignore:dateutil.tz.tz:DeprecationWarning
    ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning
@laszewsk
Copy link
Member Author

In reality we should shange the code, here the error we see

../../../../ENVx/lib/python3.12/site-packages/dateutil/tz/tz.py:37
/home/green/ENVx/lib/python3.12/site-packages/dateutil/tz/tz.py:37: 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).
EPOCH = datetime.datetime.utcfromtimestamp(0)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant