Ignore:
Timestamp:
2015-06-23T16:43:27+02:00 (10 years ago)
Author:
nokutu
Message:

Solved bugs related to timezone

Location:
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAbstractImage.java

    r31296 r31299  
    55import java.text.SimpleDateFormat;
    66import java.util.Calendar;
     7import java.util.TimeZone;
    78
    89import org.openstreetmap.josm.Main;
     
    146147        else
    147148            format += "dd/MM/yyyy";
    148         if (Main.pref.getBoolean("mapillary.display-hour")){
     149        if (Main.pref.getBoolean("mapillary.display-hour", true)){
    149150            if (Main.pref.getBoolean("mapillary.format-24"))
    150                 format += " - HH:mm:ss";
     151                format += " - HH:mm:ss (z)";
    151152            else
    152                 format += " - h:mm:ss a";
     153                format += " - h:mm:ss a (z)";
    153154        }
    154155        return getDate(format);
     
    173174
    174175        SimpleDateFormat formatter = new SimpleDateFormat(format);
     176        formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
    175177        return formatter.format(date);
    176178    }
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryMouseAdapter.java

    r31298 r31299  
    77
    88import org.openstreetmap.josm.Main;
    9 import org.openstreetmap.josm.actions.mapmode.MapMode;
    109import org.openstreetmap.josm.data.coor.LatLon;
    1110import org.openstreetmap.josm.data.osm.OsmPrimitive;
Note: See TracChangeset for help on using the changeset viewer.