mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Additional guard against fixed time zones
This commit is contained in:
parent
46da627318
commit
7d49a2bd99
|
@ -79,7 +79,7 @@ public class DateTimeZoneProvider {
|
|||
for (String id : getIds()) {
|
||||
DateTimeZone tz = getTimeZone(id);
|
||||
int tzOffset = tz.getOffset(time) / 60_000;
|
||||
if (Math.abs(tzOffset - offset) > 120) {
|
||||
if (Math.abs(tzOffset - offset) > 120 || tz.previousTransition(time) == time) {
|
||||
continue;
|
||||
}
|
||||
zones.add(new Score(tz));
|
||||
|
|
Loading…
Reference in New Issue
Block a user