Skip to content

Commit 1a936d4

Browse files
committed
fix deprecated warning
1 parent c6efac5 commit 1a936d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python3/raygun4py/raygunmsgs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
USE_MULTIPROCESSING = False
1616

1717
import platform
18-
from datetime import datetime
18+
from datetime import datetime, UTC
1919

2020
from raygun4py import http_utilities
2121

@@ -129,7 +129,7 @@ def set_user(self, user):
129129
class RaygunMessage(object):
130130

131131
def __init__(self):
132-
self.occurredOn = datetime.utcnow()
132+
self.occurredOn = datetime.now(UTC)
133133
self.details = {}
134134

135135
def __copy__(self):

0 commit comments

Comments
 (0)