- Timestamp:
- 2021-04-09T00:55:38+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/animation/AnimationExtensionManager.java
r17322 r17719 2 2 package org.openstreetmap.josm.gui.animation; 3 3 4 import java.util.Calendar; 5 import java.util.Date; 6 import java.util.GregorianCalendar; 4 import java.time.LocalDate; 7 5 8 6 import org.openstreetmap.josm.data.preferences.BooleanProperty; … … 45 43 46 44 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; 50 46 } 51 47 }
Note:
See TracChangeset
for help on using the changeset viewer.