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 9acdc23 commit 3191a77Copy full SHA for 3191a77
src/quartz_api/internal/service/substations/router.py
@@ -52,11 +52,16 @@ async def get_substation_forecast(
52
substation_uuid: UUID,
53
db: models.DBClientDependency,
54
auth: AuthDependency,
55
+ tz: models.TZDependency,
56
) -> list[models.PredictedPower]:
57
"""Get forecasted generation values of a substation."""
58
forecast = await db.get_substation_forecast(
59
location_uuid=substation_uuid,
60
authdata=auth,
61
)
62
+ forecast = [
63
+ value.to_timezone(tz=tz)
64
+ for value in forecast
65
+ ]
66
return forecast
67
0 commit comments