diff --git a/ibm_mq/datadog_checks/ibm_mq/stats/base_stats.py b/ibm_mq/datadog_checks/ibm_mq/stats/base_stats.py index d93e591b4ac22..b7ee2cf2e7464 100644 --- a/ibm_mq/datadog_checks/ibm_mq/stats/base_stats.py +++ b/ibm_mq/datadog_checks/ibm_mq/stats/base_stats.py @@ -16,8 +16,8 @@ class BaseStats(object): - def __init__(self, raw_message): - self.start_datetime = self._parse_datetime(raw_message[MQCAMO_START_DATE], raw_message[MQCAMO_START_TIME]) + def __init__(self, raw_message, timezone=None): + self.start_datetime = self._parse_datetime(raw_message[MQCAMO_START_DATE], raw_message[MQCAMO_START_TIME], timezone=timezone) @staticmethod def _parse_datetime(raw_date, raw_time, timezone=None):