Skip to content

Commit ae7dddb

Browse files
committed
Fix 'workflow.filter' command that was wrongly converting timestamps
Those dates are now already converted to datetimes by boto3
1 parent debeb14 commit ae7dddb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

simpleflow/swf/stats/pretty.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from itertools import chain
77
from typing import TYPE_CHECKING, Any, Sequence
88

9-
import pytz
109
from tabulate import tabulate
1110

1211
from simpleflow.history import History
@@ -251,8 +250,8 @@ def list_details(workflow_executions: list[WorkflowExecution]) -> tuple[Sequence
251250
execution.task_list,
252251
execution.child_policy,
253252
execution.close_status,
254-
datetime.fromtimestamp(execution.start_timestamp, tz=pytz.utc),
255-
datetime.fromtimestamp(execution.close_timestamp, tz=pytz.utc),
253+
execution.start_timestamp,
254+
execution.close_timestamp,
256255
execution.cancel_requested,
257256
execution.execution_timeout,
258257
execution.input,

0 commit comments

Comments
 (0)