diff --git a/pvoutput/pvoutput.py b/pvoutput/pvoutput.py index 0e4ea35..1c79e42 100644 --- a/pvoutput/pvoutput.py +++ b/pvoutput/pvoutput.py @@ -1049,7 +1049,7 @@ def _set_rate_limit_params(self, headers): setattr(self, param_name, header_value) self.rate_limit_reset_time = pd.Timestamp.utcfromtimestamp(self.rate_limit_reset_time) - self.rate_limit_reset_time = self.rate_limit_reset_time.tz_localize("utc") + self.rate_limit_reset_time = self.rate_limit_reset_time.tz_convert("utc") _LOG.debug("%s", self.rate_limit_info())