From 51edb5058ede7bf86ce73132d76c833b3c9c318b Mon Sep 17 00:00:00 2001 From: Rachel Tipton Date: Wed, 25 Oct 2023 14:41:58 +0200 Subject: [PATCH] update panda time converter --- pvoutput/pvoutput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())