Changeset 35940 in osm for applications


Ignore:
Timestamp:
2022-03-22T19:39:15+01:00 (2 years ago)
Author:
taylor.smock
Message:

fix #21774: Update deprecated functions in infomode

This converts WayPoint#getDate to WayPoint#getInstant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r35221 r35940  
    1111import java.text.DateFormat;
    1212import java.util.Collection;
     13import java.util.Date;
    1314import java.util.HashSet;
    1415import java.util.Set;
     
    109110            but2.setVisible(false);
    110111        } else {
    111             label1.setText(DateUtils.formatDateTime(wp.getDate(), DateFormat.DEFAULT, DateFormat.DEFAULT));
     112            label1.setText(DateUtils.getDateTimeFormat(DateFormat.DEFAULT, DateFormat.DEFAULT).format(Date.from(wp.getInstant())));
    112113            but2.setVisible(true);
    113114        }
Note: See TracChangeset for help on using the changeset viewer.