Skip to content

Commit

Permalink
chore: timestamp update
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl committed Dec 11, 2024
1 parent f59d9a4 commit 16772eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/src/uagents/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
import uuid
from abc import ABC, abstractmethod
from time import time
from datetime import datetime, timezone
from typing import (
TYPE_CHECKING,
Any,
Expand Down Expand Up @@ -489,7 +489,7 @@ async def send_raw(
)

# Calculate when the envelope expires
expires = int(time()) + timeout
expires = int(datetime.now(timezone.utc).timestamp()) + timeout

# Handle external dispatch of messages
env = Envelope(
Expand Down

0 comments on commit 16772eb

Please sign in to comment.