Skip to content

Commit 929a183

Browse files
committed
RDBC-1017 Change datetime.now(UTC) to utcnow to support Python 3.10 and 3.11
1 parent 1e857e6 commit 929a183

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ravendb/documents/operations/schema_validation

ravendb/documents/operations/schema_validation/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import json
4-
from datetime import datetime, UTC
4+
from datetime import datetime
55
from typing import Optional, Dict, Any, List
66

77
import requests
@@ -23,7 +23,7 @@ def __init__(
2323
):
2424
self.schema = schema
2525
self.disabled = disabled
26-
self.last_modified_time = last_modified_time or datetime.now(UTC)
26+
self.last_modified_time = last_modified_time or datetime.utcnow()
2727

2828
def to_json(self) -> Dict[str, Any]:
2929
return {

0 commit comments

Comments
 (0)