Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImportedImage.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImportedImage.java	(revision 31841)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImportedImage.java	(revision 31842)
@@ -59,10 +59,8 @@
     this.file = file;
     try {
-      this.capturedAt = MapillaryUtils.getEpoch(datetimeOriginal,
-          "yyyy:MM:dd hh:mm:ss");
+      this.capturedAt = MapillaryUtils.getEpoch(datetimeOriginal, "yyyy:MM:dd HH:mm:ss");
     } catch (ParseException e) {
       try {
-        this.capturedAt = MapillaryUtils.getEpoch(datetimeOriginal,
-            "yyyy/MM/dd hh:mm:ss");
+        this.capturedAt = MapillaryUtils.getEpoch(datetimeOriginal, "yyyy/MM/dd HH:mm:ss");
       } catch (ParseException e1) {
         this.capturedAt = MapillaryUtils.currentTime();
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/MapillaryExportWriterThread.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/MapillaryExportWriterThread.java	(revision 31841)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/MapillaryExportWriterThread.java	(revision 31842)
@@ -129,8 +129,8 @@
         if (mimg instanceof MapillaryImportedImage)
           exifDirectory.add(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL,
-              ((MapillaryImportedImage) mimg).getDate("yyyy/MM/dd hh:mm:ss"));
+              ((MapillaryImportedImage) mimg).getDate("yyyy/MM/dd HH:mm:ss"));
         else if (mimg instanceof MapillaryImage)
           exifDirectory.add(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL,
-              ((MapillaryImage) mimg).getDate("yyyy/MM/dd hh/mm/ss"));
+              ((MapillaryImage) mimg).getDate("yyyy/MM/dd HH/mm/ss"));
         outputSet.setGPSInDegrees(mimg.getLatLon().lon(), mimg.getLatLon().lat());
         OutputStream os = new BufferedOutputStream(new FileOutputStream(finalPath + ".jpg"));
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java	(revision 31841)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java	(revision 31842)
@@ -175,5 +175,5 @@
     exifDirectory.removeField(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL);
     exifDirectory.add(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL,
-        ((MapillaryImportedImage) image).getDate("yyyy/MM/dd hh:mm:ss"));
+        ((MapillaryImportedImage) image).getDate("yyyy/MM/dd HH:mm:ss"));
 
     // Removes the ImageDescription tag, that causes problems in the upload.
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java	(revision 31841)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java	(revision 31842)
@@ -74,22 +74,34 @@
 
   /**
-   * Returns the current date.
+   * Returns the current date formatted as EXIF timestamp.
+   * As timezone the default timezone of the JVM is used ({@link java.util.TimeZone#getDefault()}).
    *
    * @return A {@code String} object containing the current date.
    */
   public static String currentDate() {
-    Calendar cal = Calendar.getInstance();
-    SimpleDateFormat formatter = new SimpleDateFormat("yyyy:MM:dd hh:mm:ss");
-    return formatter.format(cal.getTime());
-  }
-
-  /**
-   * Returns current time in Epoch format
+    return new SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.UK).format(Calendar.getInstance().getTime());
+  }
+
+  /**
+   * Returns current time in Epoch format (milliseconds since 1970-01-01T00:00:00+0000)
    *
    * @return The current date in Epoch format.
    */
   public static long currentTime() {
-    Calendar cal = Calendar.getInstance();
-    return cal.getTimeInMillis();
+    return Calendar.getInstance().getTimeInMillis();
+  }
+
+  /**
+   * Parses a string with a given format and returns the Epoch time.
+   * If no timezone information is given, the default timezone of the JVM is used
+   * ({@link java.util.TimeZone#getDefault()}).
+   *
+   * @param date The string containing the date.
+   * @param format The format of the date.
+   * @return The date in Epoch format.
+   * @throws ParseException
+   */
+  public static long getEpoch(String date, String format) throws ParseException {
+    return new SimpleDateFormat(format, Locale.UK).parse(date).getTime();
   }
 
@@ -149,23 +161,6 @@
     }
 
-    result = 360 * ((result + 180) / 360 - Math.floor((result + 180) / 360))
-        - 180;
+    result = 360 * ((result + 180) / 360 - Math.floor((result + 180) / 360)) - 180;
     return result;
-  }
-
-  /**
-   * Parses a string with a given format and returns the Epoch time.
-   *
-   * @param date
-   *          The string containing the date.
-   * @param format
-   *          The format of the date.
-   * @return The date in Epoch format.
-   * @throws ParseException
-   */
-  public static long getEpoch(String date, String format) throws ParseException {
-    SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.UK);
-    Date dateTime = formatter.parse(date);
-    return dateTime.getTime();
   }
 
