Permalink
Browse files

utc timestamps

  • Loading branch information...
1 parent 432c6c1 commit 69868f8e7859ddc9742fa3fd983448d012d2143b mic committed Feb 23, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 blogracy-web/src/main/java/net/blogracy/controller/FileSharing.java
@@ -31,6 +31,7 @@
import java.security.NoSuchAlgorithmException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
+import java.util.TimeZone;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
@@ -93,7 +94,7 @@
private MessageConsumer consumer;
static final DateFormat ISO_DATE_FORMAT = new SimpleDateFormat(
- "yyyy-MM-dd'T'HH:mm:ss");
+ "yyyy-MM-dd'T'HH:mm:ss'Z'");
static final String CACHE_FOLDER = Configurations.getPathConfig()
.getCachedFilesDirectoryPath();
@@ -143,6 +144,7 @@ public static String hash(File file) {
}
public FileSharing() {
+ ISO_DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
try {
connectionFactory = new ActiveMQConnectionFactory(
ActiveMQConnection.DEFAULT_BROKER_URL);

0 comments on commit 69868f8

Please sign in to comment.