mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
TinyWeather: Patch incoming current weather with current timestamp
This commit is contained in:
parent
f05ddd2d24
commit
ebc70b3fd5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user