Changeset 7303 in josm for trunk/src


Ignore:
Timestamp:
2014-07-11T02:59:09+02:00 (6 years ago)
Author:
Don-vip
Message:

see #10121 - fix handling of time, causing an error in unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java

    r7299 r7303  
    365365            if (value == null || value.trim().isEmpty())
    366366                throw new ChangesetQueryUrlException(tr("Unexpected value for ''{0}'' in changeset query url, got {1}", parameter, value));
    367             if (value.endsWith("Z")) {
    368                 // OSM API generates date strings with time zone abbreviation "Z" which Java SimpleDateFormat
    369                 // doesn't understand. Convert into GMT time zone before parsing.
    370                 //
    371                 value = value.substring(0,value.length() - 1) + "GMT+00:00";
    372             }
    373367            DateFormat formatter = DateUtils.newIsoDateTimeFormat();
    374368            try {
Note: See TracChangeset for help on using the changeset viewer.