Skip to content

Commit

Permalink
Merge pull request #40 from rwth-iat/http_api/fix_datetime_deprecatio…
Browse files Browse the repository at this point in the history
…n_warning

adapter.http: fix a `DeprecationWarning`
  • Loading branch information
Frosty2500 authored Jun 15, 2024
2 parents 9b7a7f6 + 367746c commit 2b81898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basyx/aas/adapter/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, code: str, text: str, message_type: MessageType = MessageType
self.code: str = code
self.text: str = text
self.message_type: MessageType = message_type
self.timestamp: datetime.datetime = timestamp if timestamp is not None else datetime.datetime.utcnow()
self.timestamp: datetime.datetime = timestamp if timestamp is not None else datetime.datetime.now(datetime.UTC)


class Result:
Expand Down

0 comments on commit 2b81898

Please sign in to comment.