Changeset 3562 in josm
- Timestamp:
- 2010-09-25T10:39:16+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/ChangesetClosedException.java
r3083 r3562 75 75 if (m.matches()) { 76 76 changesetId = Long.parseLong(m.group(1)); 77 // Example: Tue Oct 15 10:00:00 UTC 2009. Always parsed withenglishlocale regardless77 // Example: "2010-09-07 14:39:41 UTC". Always parsed with US locale regardless 78 78 // of the current locale in JOSM 79 DateFormat formatter = new SimpleDateFormat(" EEE MMMdd HH:mm:ss zzz yyyy",Locale.ENGLISH);79 DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z", Locale.US); 80 80 try { 81 81 closedOn = formatter.parse(m.group(2)); -
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r3255 r3562 198 198 if (m.matches()) { 199 199 long changesetId = Long.parseLong(m.group(1)); 200 // Example: Tue Oct 15 10:00:00 UTC 2009. Always parsed withenglishlocale, regardless200 // Example: "2010-09-07 14:39:41 UTC". Always parsed with US locale, regardless 201 201 // of the current locale in JOSM 202 DateFormat formatter = new SimpleDateFormat(" EEE MMMdd HH:mm:ss zzz yyyy", Locale.ENGLISH);202 DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z", Locale.US); 203 203 Date closeDate = null; 204 204 try { … … 249 249 +"because it has already been closed on {1}.</html>", 250 250 e.getChangesetId(), 251 dateFormat.format(e.getClosedOn()) 251 e.getClosedOn() == null ? "?" : dateFormat.format(e.getClosedOn()) 252 252 ); 253 253 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.