From 18e7e5717e17e7bf143afc353e18a31ba05a2de3 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Tue, 13 May 2025 11:40:32 +0200 Subject: [PATCH] fix (Core): use utcfromtimestamp everywhere in Graph instead of fromtimestamp --- src/DIRAC/Core/Utilities/Graphs/GraphData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/Core/Utilities/Graphs/GraphData.py b/src/DIRAC/Core/Utilities/Graphs/GraphData.py index 4abc4b37b61..1da85794853 100644 --- a/src/DIRAC/Core/Utilities/Graphs/GraphData.py +++ b/src/DIRAC/Core/Utilities/Graphs/GraphData.py @@ -411,7 +411,7 @@ def initialize(self): self.num_keys.append(next) next += 1 elif self.key_type == "time": - self.num_keys = [date2num(datetime.datetime.fromtimestamp(to_timestamp(key))) for key in self.keys] + self.num_keys = [date2num(datetime.datetime.utcfromtimestamp(to_timestamp(key))) for key in self.keys] elif self.key_type == "numeric": self.num_keys = [float(key) for key in self.keys]