We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3c615f + 3b1d595 commit 62c4fd2Copy full SHA for 62c4fd2
simpleflow/swf/mapper/models/event/base.py
@@ -92,7 +92,9 @@ def state(self) -> str:
92
93
@cached_property
94
def timestamp(self) -> datetime:
95
- return self._timestamp.astimezone(pytz.UTC)
+ if isinstance(self._timestamp, datetime):
96
+ return self._timestamp.astimezone(pytz.UTC)
97
+ return datetime.fromtimestamp(self._timestamp, tz=pytz.UTC)
98
99
@property
100
def input(self) -> dict[str, Any]:
0 commit comments