From 0f24e040faf418a5fb79fc4b5bf8ba6b367d03fe Mon Sep 17 00:00:00 2001 From: Alexandre Bourret Date: Tue, 25 Jun 2024 17:37:24 +0200 Subject: [PATCH] fix timestamp drift for event frames search --- .../pi-system_event-frames-search/connector.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-connectors/pi-system_event-frames-search/connector.py b/python-connectors/pi-system_event-frames-search/connector.py index 4f5f1ce..fba760a 100644 --- a/python-connectors/pi-system_event-frames-search/connector.py +++ b/python-connectors/pi-system_event-frames-search/connector.py @@ -40,7 +40,13 @@ def __init__(self, config, plugin_config): if self.object_id is None: self.object_id = config.get("next_element", None) self.start_time = config.get("start_time") + self.start_time = self.client.parse_pi_time(self.start_time) + if self.start_time: + config["start_time"] = self.start_time self.end_time = config.get("end_time") + self.end_time = self.client.parse_pi_time(self.end_time) + if self.end_time: + config["end_time"] = self.end_time self.search_mode = config.get("search_mode", None) self.output_type = config.get("output_type") assert_time_format(self.start_time, error_source="start time")