diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-06 20:25:55 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-06 20:26:08 +1200 |
commit | 3ed2536aae70188fb6c7f20ff7a6a8ab7dfbba80 (patch) | |
tree | bf887e76a4ced8b95b2751ccf3582ec4b4c77fb3 /src/org/traccar/database/MediaManager.java | |
parent | bc4856d376a555a65059f5295b9ed744e07e7585 (diff) | |
download | trackermap-server-3ed2536aae70188fb6c7f20ff7a6a8ab7dfbba80.tar.gz trackermap-server-3ed2536aae70188fb6c7f20ff7a6a8ab7dfbba80.tar.bz2 trackermap-server-3ed2536aae70188fb6c7f20ff7a6a8ab7dfbba80.zip |
Fix hours formatting
Diffstat (limited to 'src/org/traccar/database/MediaManager.java')
-rw-r--r-- | src/org/traccar/database/MediaManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/MediaManager.java b/src/org/traccar/database/MediaManager.java index 0bb6afac7..eb23d162f 100644 --- a/src/org/traccar/database/MediaManager.java +++ b/src/org/traccar/database/MediaManager.java @@ -49,7 +49,7 @@ public class MediaManager { public String writeFile(String uniqueId, ByteBuf buf, String extension) { if (path != null) { int size = buf.readableBytes(); - String name = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()) + "." + extension; + String name = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + "." + extension; try (FileOutputStream output = new FileOutputStream(createFile(uniqueId, name)); FileChannel fileChannel = output.getChannel()) { ByteBuffer byteBuffer = buf.nioBuffer(); |