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.
1 parent 0dcc762 commit 7d5bd88Copy full SHA for 7d5bd88
async_rithmic/plants/base.py
@@ -556,8 +556,7 @@ def _datetime_to_utc(self, dt: datetime):
556
return dt
557
558
def _ssboe_usecs_to_datetime(self, ssboe: int, usecs: int):
559
- ts = '{0}.{1}'.format(ssboe, usecs)
560
- return datetime.fromtimestamp(float(ts), tz=pytz.utc)
+ return datetime.fromtimestamp(ssboe, tz=pytz.utc).replace(microsecond=usecs)
561
562
def _datetime_to_ssboe_usecs(self, dt: datetime):
563
"""
0 commit comments