Changeset 12405 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-06-13T21:26:46+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #14938 - robustness to system date changing during startup

File:
1 edited

Legend:

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

    r12272 r12405  
    161161                throw new IllegalStateException("This task has already been finished: " + name);
    162162            }
    163             duration = tr(" ({0})", Utils.getDurationString(System.currentTimeMillis() - start));
     163            long time = System.currentTimeMillis() - start;
     164            if (time >= 0) {
     165                duration = tr(" ({0})", Utils.getDurationString(time));
     166            }
    164167        }
    165168
Note: See TracChangeset for help on using the changeset viewer.