Skip to content

Commit

Permalink
Added timezone.utc to default value in Header.prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
javihern98 committed May 17, 2024
1 parent ef582a6 commit 6357096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pysdmx/model/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
can be written.
"""

from datetime import datetime
from datetime import datetime, timezone
from enum import Enum
from typing import Optional
import uuid
Expand All @@ -29,7 +29,7 @@ class Header(Struct, frozen=True, kw_only=True):

id: str = str(uuid.uuid4())
test: bool = True
prepared: datetime = datetime.now()
prepared: datetime = datetime.now(timezone.utc)
sender: str = "ZZZ"
receiver: Optional[str] = None
source: Optional[str] = None
Expand Down

0 comments on commit 6357096

Please sign in to comment.