mirror of
https://github.com/alexhopeoconnor/bom-local-card.git
synced 2026-10-22 02:42:08 +10:00
Fix forecastTime to use API metadata instead of current time
- Use metadata.forecastTime from API response instead of endTime in fetchHistoricalFrames - Ensures forecast time displays correctly in user's browser timezone - Fixes issue where forecast time was showing incorrect timezone
This commit is contained in:
@@ -154,7 +154,7 @@ export class RadarApiService {
|
||||
frames: allFrames,
|
||||
lastUpdated: endTime,
|
||||
observationTime: metadata.observationTime || newestCacheFolder?.observationTime || endTime,
|
||||
forecastTime: endTime,
|
||||
forecastTime: metadata.forecastTime || endTime,
|
||||
weatherStation: metadata.weatherStation,
|
||||
distance: metadata.distance,
|
||||
cacheIsValid: metadata.cacheIsValid ?? true,
|
||||
|
||||
Reference in New Issue
Block a user