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")