From d0c4dde7940cd927d3ddd78b010994c43017042a Mon Sep 17 00:00:00 2001 From: terraputix Date: Mon, 16 Feb 2026 00:25:27 +0100 Subject: [PATCH] no last day as default and prepare timezone --- src/lib/services/weather.ts | 6 ++++-- src/routes/weather/week/[location]/+page.svelte | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/services/weather.ts b/src/lib/services/weather.ts index 417b470..1cffa3e 100644 --- a/src/lib/services/weather.ts +++ b/src/lib/services/weather.ts @@ -164,6 +164,7 @@ export interface WeekForecastParams extends WeatherLocation, WeatherUnitParams { model?: string; forecast_days?: number; past_days?: number; + timezone?: string; } export interface WeekHourlyData { @@ -285,7 +286,7 @@ const WEEK_DAILY_VARS = [ */ export async function fetchWeekForecast(params: WeekForecastParams): Promise { const forecastDays = params.forecast_days ?? 6; - const pastDays = params.past_days ?? 1; + const pastDays = params.past_days ?? 0; const modelParam = params.model && params.model !== 'best_match' ? params.model : undefined; const apiParams: Record = { @@ -298,7 +299,8 @@ export async function fetchWeekForecast(params: WeekForecastParams): Promise