Changeset 17716 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-04-09T00:19:50+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/UserInfo.java
r11878 r17716 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import java. util.Date;4 import java.time.Instant; 5 5 import java.util.List; 6 6 7 7 import org.openstreetmap.josm.data.coor.LatLon; 8 import org.openstreetmap.josm.tools.date.DateUtils;9 8 10 9 /** … … 18 17 private String displayName; 19 18 /** the date this user was created */ 20 private DateaccountCreated;19 private Instant accountCreated; 21 20 /** the home location */ 22 21 private LatLon home; … … 73 72 * @return the user account creation date 74 73 */ 75 public DategetAccountCreated() {76 return DateUtils.cloneDate(accountCreated);74 public Instant getAccountCreated() { 75 return accountCreated; 77 76 } 78 77 … … 81 80 * @param accountCreated user account creation date 82 81 */ 83 public void setAccountCreated( DateaccountCreated) {84 this.accountCreated = DateUtils.cloneDate(accountCreated);82 public void setAccountCreated(Instant accountCreated) { 83 this.accountCreated = accountCreated; 85 84 } 86 85 -
trunk/src/org/openstreetmap/josm/io/OsmServerUserInfoReader.java
r16436 r17716 61 61 v = getAttribute(xmlNode, "account_created"); 62 62 if (v != null) { 63 userInfo.setAccountCreated(DateUtils. fromString(v));63 userInfo.setAccountCreated(DateUtils.parseInstant(v)); 64 64 } 65 65 // -- description
Note:
See TracChangeset
for help on using the changeset viewer.