Changeset 13042 in josm
- Timestamp:
- 2017-10-27T00:37:48+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r12639 r13042 13 13 import java.awt.event.WindowEvent; 14 14 import java.text.DateFormat; 15 import java.text.SimpleDateFormat; 15 16 16 17 import javax.swing.AbstractAction; … … 335 336 } 336 337 DateFormat dtf = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 338 // Make sure date/time format includes milliseconds 339 if (dtf instanceof SimpleDateFormat) { 340 String pattern = ((SimpleDateFormat) dtf).toPattern(); 341 if (!pattern.contains(".SSS")) { 342 dtf = new SimpleDateFormat(pattern.replace(":ss", ":ss.SSS")); 343 } 344 } 337 345 if (entry.hasExifTime()) { 338 346 osd.append(tr("\nEXIF time: {0}", dtf.format(entry.getExifTime())));
Note:
See TracChangeset
for help on using the changeset viewer.