Skip to content

Commit

Permalink
utc timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
mic authored and mic committed Feb 23, 2013
1 parent 432c6c1 commit 69868f8
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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;
Expand Down Expand Up @@ -93,7 +94,7 @@ public class FileSharing {
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();

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 69868f8

Please sign in to comment.