Changeset 17719 in josm for trunk


Ignore:
Timestamp:
2021-04-09T00:55:38+02:00 (4 years ago)
Author:
simon04
Message:

see #14176 - Migrate AnimationExtensionManager to LocalDate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/animation/AnimationExtensionManager.java

    r17322 r17719  
    22package org.openstreetmap.josm.gui.animation;
    33
    4 import java.util.Calendar;
    5 import java.util.Date;
    6 import java.util.GregorianCalendar;
     4import java.time.LocalDate;
    75
    86import org.openstreetmap.josm.data.preferences.BooleanProperty;
     
    4543
    4644    private static boolean isChristmas() {
    47         Calendar c = new GregorianCalendar();
    48         c.setTime(new Date());
    49         return c.get(Calendar.DAY_OF_YEAR) > 350;
     45        return LocalDate.now().getDayOfYear() > 350;
    5046    }
    5147}
Note: See TracChangeset for help on using the changeset viewer.