Changeset 9394 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-10T18:06:13+01:00 (8 years ago)
Author:
simon04
Message:

Fix timezone aware unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r9385 r9394  
    303303        return getDateTimeFormat(dateStyle, timeStyle).format(datetime);
    304304    }
     305
     306    /**
     307     * Allows to override the timezone for unit tests.
     308     * @param zone the timezone to use
     309     */
     310    protected static void setTimeZone(TimeZone zone) {
     311        calendarLocale.setTimeZone(zone);
     312    }
    305313}
Note: See TracChangeset for help on using the changeset viewer.