From ebc70b3fd5ac0b5290fd15d7ba3963a99f2e67c0 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Thu, 20 Aug 2020 23:07:24 +0200 Subject: [PATCH] TinyWeather: Patch incoming current weather with current timestamp --- .../externalevents/TinyWeatherForecastGermanyReceiver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/TinyWeatherForecastGermanyReceiver.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/TinyWeatherForecastGermanyReceiver.java index b84da4c4e..d892a2515 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/TinyWeatherForecastGermanyReceiver.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/TinyWeatherForecastGermanyReceiver.java @@ -36,6 +36,7 @@ public class TinyWeatherForecastGermanyReceiver extends BroadcastReceiver { WeatherSpec weatherSpec = bundle.getParcelable("WeatherSpec"); if (weatherSpec != null) { Weather.getInstance().setWeatherSpec(weatherSpec); + weatherSpec.timestamp = (int) (System.currentTimeMillis() / 1000); GBApplication.deviceService().onSendWeather(weatherSpec); } }