Ignore:
Timestamp:
2016-09-20T22:46:47+02:00 (3 years ago)
Author:
simon04
Message:

see #13376 - Replace Calendar usages with Java 8 Date API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxExporter.java

    r10615 r11035  
    1212import java.io.OutputStream;
    1313import java.text.MessageFormat;
    14 import java.util.Calendar;
     14import java.time.Year;
    1515
    1616import javax.swing.JButton;
     
    225225                String sCopyrightYear = data.getString(META_COPYRIGHT_YEAR);
    226226                if (sCopyrightYear == null) {
    227                     sCopyrightYear = Integer.toString(Calendar.getInstance().get(Calendar.YEAR));
     227                    sCopyrightYear = Year.now().toString();
    228228                }
    229229                copyrightYear.setText(sCopyrightYear);
Note: See TracChangeset for help on using the changeset viewer.