Closed zallek closed 8 years ago
swf.models.event.base.Event#timestamp:
return datetime.fromtimestamp(self._timestamp, tz=pytz.UTC)
?
See #91, the timezone problem should be fixed when we deploy simpleflow 0.11.4 ; as for the fact we call "timestamp" things that are in fact "dates", we'll address that later, it won't be nice to change :/
Dates in workflow history doesn't have their timezone making it really hard to compare with other dates like in this example https://github.com/botify-hq/botify-workflow-dashboard/blob/master/test/utils/workflowFile/input-0.json where tasks and metrology steps aren't in the same timezone.
https://github.com/botify-labs/simpleflow/blob/4317a13b78de57f4394882e13abafcba0fc1651e/simpleflow/history.py#L31
BTW: timestamps are number of milliseconds since 1 jan 1970. So in the workflow history file, timestamps are actually datetimes and times are timestamps.