Skip to content

Commit

Permalink
drop eol python; make sure we use timezone.utc
Browse files Browse the repository at this point in the history
  • Loading branch information
psi29a committed Jul 26, 2024
1 parent 44bef32 commit 3c87100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eve/methods/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import time
from collections import Counter
from copy import copy
from datetime import datetime, UTC
from datetime import datetime, timezone
from functools import wraps

import simplejson as json
Expand Down Expand Up @@ -1531,4 +1531,4 @@ def oplog_push(resource, document, op, id=None):


def utcnow():
return datetime.now(UTC).replace(microsecond=0)
return datetime.now(timezone.utc).replace(microsecond=0)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py3{11,10,9,8,7},pypy3{8,7},linting
envlist=py3{12,11,10,9},pypy3{10,9},linting

[testenv]
extras=tests
Expand Down

0 comments on commit 3c87100

Please sign in to comment.