From 02f114ff3db98837af91baac0832d72eaf3cccd1 Mon Sep 17 00:00:00 2001 From: farfromrefug Date: Wed, 8 Jan 2025 15:15:31 +0100 Subject: [PATCH] fix: daily page astronomy fixes for daylight remaining on different timezones. Astronomy update on daily page swipe --- app/components/DailyPage.svelte | 21 +++++---- app/components/WeatherPage.svelte | 12 ++++-- app/components/astronomy/AstronomyView.svelte | 43 +++++++++++++------ 3 files changed, 50 insertions(+), 26 deletions(-) diff --git a/app/components/DailyPage.svelte b/app/components/DailyPage.svelte index 289b299c..05f837e2 100644 --- a/app/components/DailyPage.svelte +++ b/app/components/DailyPage.svelte @@ -6,7 +6,7 @@ import dayjs, { Dayjs } from 'dayjs'; import { NativeViewElementNode } from 'svelte-native/dom'; import AstronomyView from '~/components/astronomy/AstronomyView.svelte'; - import { DAILY_PAGE_HOURLY_CHART, SETTINGS_DAILY_PAGE_HOURLY_CHART } from '~/helpers/constants'; + import { DAILY_PAGE_HOURLY_CHART, SETTINGS_DAILY_PAGE_HOURLY_CHART, SETTINGS_SHOW_CURRENT_DAY_DAILY, SHOW_CURRENT_DAY_DAILY } from '~/helpers/constants'; import { formatDate, lc } from '~/helpers/locale'; import { POLLENS_POLLUTANTS_TITLES } from '~/services/airQualityData'; import { WeatherLocation } from '~/services/api'; @@ -37,8 +37,6 @@