Changeset 17721 in josm


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

see #14176 - Fix BookmarkList.ChangesetBookmark

https://errorprone.info/bugpattern/FormatString

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java

    r17333 r17721  
    66import java.awt.Component;
    77import java.awt.GraphicsEnvironment;
     8import java.time.ZoneId;
    89import java.util.ArrayList;
    910import java.util.Arrays;
     
    231232         */
    232233        public ChangesetBookmark(Changeset cs) {
    233             setName(String.format("%d - %tF - %s", cs.getId(), cs.getCreatedAt(), cs.getComment()));
     234            setName(String.format("%d - %tF - %s", cs.getId(), cs.getCreatedAt().atZone(ZoneId.systemDefault()), cs.getComment()));
    234235            setIcon(ImageProvider.get("data", "changeset", ImageSizes.SMALLICON));
    235236            setArea(cs.getBounds());
Note: See TracChangeset for help on using the changeset viewer.