mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 10:05:49 +01:00
This commit is contained in:
parent
f9268d981e
commit
a76b9af80c
@ -257,7 +257,7 @@ public class ZeppOsWeather {
|
||||
|
||||
private Range getSunriseSunset(final Date sunRise, final Date sunSet) {
|
||||
final SimpleDateFormat sunRiseSetSdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ROOT);
|
||||
sunRiseSetSdf.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
sunRiseSetSdf.setTimeZone(TimeZone.getDefault());
|
||||
|
||||
final String from = sunRiseSetSdf.format(sunRise);
|
||||
final String to = sunRiseSetSdf.format(sunSet);
|
||||
@ -301,7 +301,7 @@ public class ZeppOsWeather {
|
||||
moonPhaseValue.add(String.valueOf(phase));
|
||||
|
||||
final SimpleDateFormat moonRiseSetSdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ROOT);
|
||||
moonRiseSetSdf.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
moonRiseSetSdf.setTimeZone(TimeZone.getDefault());
|
||||
|
||||
final String from = moonRiseSetSdf.format(new Date(rise * 1000L));
|
||||
final String to = moonRiseSetSdf.format(new Date(set * 1000L));
|
||||
|
Loading…
Reference in New Issue
Block a user