We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f17930 commit f4dea27Copy full SHA for f4dea27
src/frequenz/client/reporting/_client.py
@@ -164,7 +164,7 @@ class AggregatedMetric:
164
def sample(self) -> MetricSample:
165
"""Return the aggregated metric sample."""
166
return MetricSample(
167
- timestamp=self._data_pb.sample.sampled_at.ToDatetime(),
+ timestamp=self._data_pb.sample.sampled_at.ToDatetime().replace(tzinfo=timezone.utc),
168
microgrid_id=self._data_pb.aggregation_config.microgrid_id,
169
component_id=self._data_pb.aggregation_config.aggregation_formula,
170
metric=self._data_pb.aggregation_config.metric,
0 commit comments