Skip to content

Conversation

@graingert
Copy link
Contributor

@graingert graingert commented Jun 2, 2023

Fixes #1284

@graingert
Copy link
Contributor Author

oh dear, CI is not looking healthy

@pganssle
Copy link
Member

pganssle commented Jun 2, 2023

oh dear, CI is not looking healthy

Yeah that's always the problem with this project (and most of the other low-velocity projects I have). Every time I try to make a change the CI has broken out from under me and I have to spend the time I had budgeted to make the change on fixing the CI.

@graingert
Copy link
Contributor Author

@pganssle fixed here #1286

@graingert graingert closed this Jun 5, 2023
@graingert graingert reopened this Jun 5, 2023
@graingert graingert marked this pull request as ready for review June 5, 2023 17:28
@pganssle
Copy link
Member

pganssle commented Jun 6, 2023

Thanks!

@pganssle pganssle merged commit 296d419 into dateutil:master Jun 6, 2023
Dreamsorcerer added a commit to aio-libs/aiohttp that referenced this pull request Aug 10, 2023
## What do these changes do?
Ignore `dateutil` DeprecationWarning on Python 3.12.
It's already fixed on upstream
dateutil/dateutil#1285. Just waiting for a new
release now.

Requires #7503

---------

Co-authored-by: Sam Bull <git@sambull.org>
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
patchback bot pushed a commit to aio-libs/aiohttp that referenced this pull request Aug 10, 2023
## What do these changes do?
Ignore `dateutil` DeprecationWarning on Python 3.12.
It's already fixed on upstream
dateutil/dateutil#1285. Just waiting for a new
release now.

Requires #7503

---------

Co-authored-by: Sam Bull <git@sambull.org>
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
(cherry picked from commit 40203b7)
Dreamsorcerer pushed a commit to aio-libs/aiohttp that referenced this pull request Aug 10, 2023
…[3.12] (#7506)

**This is a backport of PR #7505 as merged into master
(40203b7).**

## What do these changes do?
Ignore `dateutil` DeprecationWarning on Python 3.12.
It's already fixed on upstream
dateutil/dateutil#1285. Just waiting for a new
release now.

Requires #7503

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
@wimglenn
Copy link

wimglenn commented Oct 4, 2023

@pganssle Can you push a release with this change to PyPI please?

@rafrafek
Copy link

rafrafek commented Dec 20, 2023

I think the merged solution may be wrong. I think it should keep timezone-aware object, something like this:

EPOCH = datetime.datetime.fromtimestamp(0, datetime.UTC)

Edit:
I found that datetime.datetime.utcfromtimestamp() produces a naive datetime which means my suggestion above may be wrong.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning: datetime.utcfromtimestamp() is deprecated

4 participants