Changeset 19054 in josm for trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
- Timestamp:
- 2024-04-23T16:13:30+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r18870 r19054 160 160 161 161 setTimeZone(TimeZone.getTimeZone("Europe/Berlin")); 162 assertEquals("1:00:00 AM CET", DateUtils.formatTime(new Date(0), DateFormat.LONG));162 assertEquals("1:00:00 AM GMT+01:00", DateUtils.formatTime(new Date(0), DateFormat.LONG), "This is mostly dependent upon java.locale.providers. CET is also OK."); 163 163 } 164 164 … … 308 308 } 309 309 } 310 311 /** 312 * Some Java version use narrow no-break space ("NNBSP") instead of a space. 313 * @param time The time string with NNBSP instead of a space 314 * @return The time with spaces instead of NNBSP 315 */ 316 private static String replaceWhitespace(String time) { 317 return time.replace((char) 8239 /* "NNBSP" */, ' '); 318 } 310 319 }
Note:
See TracChangeset
for help on using the changeset viewer.