- Timestamp:
- 2016-06-26T23:16:54+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r10483 r10495 35 35 public static void setTimeZone(TimeZone zone) { 36 36 DateUtils.setTimeZone(zone); 37 TimeZone.setDefault(zone); 37 38 } 38 39 … … 122 123 assertEquals("12:00 AM", DateUtils.formatTime(new Date(5999), DateFormat.SHORT)); 123 124 124 TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin"));125 setTimeZone(TimeZone.getTimeZone("Europe/Berlin")); 125 126 assertEquals("1:00:00 AM CET", DateUtils.formatTime(new Date(0), DateFormat.LONG)); 126 127 } … … 156 157 157 158 // Local time 159 TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin")); 158 160 assertEquals(1459688400000L, DateUtils.tsFromString("03-APR-16 15:00:00")); 159 161 }
Note:
See TracChangeset
for help on using the changeset viewer.