Skip to content

Commit 0c95282

Browse files
committed
fix(wrapper): fix utc setting for python 3.10
1 parent 0f3483f commit 0c95282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class_cache/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def lifespan(self) -> dt.timedelta:
104104

105105
@property
106106
def _now(self) -> dt.datetime:
107-
return dt.datetime.now(dt.UTC)
107+
return dt.datetime.now(dt.timezone.utc)
108108

109109
def _check_item(self, key: KeyType) -> bool:
110110
expiration_time, _ = self.wrapped[key]

0 commit comments

Comments
 (0)