diff options
author | Alan Young <consult.awy@gmail.com> | 2015-09-17 08:16:29 (GMT) |
---|---|---|
committer | Alan Young <consult.awy@gmail.com> | 2015-09-17 08:16:29 (GMT) |
commit | c168fcd0c2468ec939b8d164175e9c5776a63147 (patch) | |
tree | b00bef3049895cc216f2ed0b16a8ca2eb242fb02 | |
parent | 3254a97b43b5ea922dcb4d687382bf0be95f9089 (diff) | |
download | stroke-c168fcd0c2468ec939b8d164175e9c5776a63147.zip stroke-c168fcd0c2468ec939b8d164175e9c5776a63147.tar.bz2 |
Do not override system default time-zone.
Remove calls to TimeZone.setDefault().
Whatever problem the changes that introduced these calls were supposed
to solve, overriding the system default timezone is not the right
solution.
Change-Id: I626419a1c00fe9d68df0c63472d4433e12502acb
-rw-r--r-- | src/com/isode/stroke/elements/JingleFileTransferFileInfo.java | 1 | ||||
-rw-r--r-- | src/com/isode/stroke/vcards/VCardManager.java | 1 | ||||
-rw-r--r-- | src/com/isode/stroke/vcards/VCardMemoryStorage.java | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/src/com/isode/stroke/elements/JingleFileTransferFileInfo.java b/src/com/isode/stroke/elements/JingleFileTransferFileInfo.java index fc4675e..271a0e2 100644 --- a/src/com/isode/stroke/elements/JingleFileTransferFileInfo.java +++ b/src/com/isode/stroke/elements/JingleFileTransferFileInfo.java @@ -79,7 +79,6 @@ public class JingleFileTransferFileInfo extends Payload { public JingleFileTransferFileInfo(String name, String description, long size, Date date) { NotNull.exceptIfNull(name, "name"); NotNull.exceptIfNull(description, "description"); - TimeZone.setDefault(TimeZone.getTimeZone("UTC")); this.name_ = name; this.description_ = description; this.size_ = size; diff --git a/src/com/isode/stroke/vcards/VCardManager.java b/src/com/isode/stroke/vcards/VCardManager.java index a5b62e8..80e7942 100644 --- a/src/com/isode/stroke/vcards/VCardManager.java +++ b/src/com/isode/stroke/vcards/VCardManager.java @@ -39,7 +39,6 @@ public class VCardManager { this.ownJID = ownJID; this.iqRouter = iqRouter; this.storage = vcardStorage; - TimeZone.setDefault(TimeZone.getTimeZone("UTC")); } public void delete() { diff --git a/src/com/isode/stroke/vcards/VCardMemoryStorage.java b/src/com/isode/stroke/vcards/VCardMemoryStorage.java index 24ca6f4..6a1bc75 100644 --- a/src/com/isode/stroke/vcards/VCardMemoryStorage.java +++ b/src/com/isode/stroke/vcards/VCardMemoryStorage.java @@ -16,7 +16,6 @@ import java.util.TimeZone; public class VCardMemoryStorage extends VCardStorage { public VCardMemoryStorage(CryptoProvider crypto) { super(crypto); - TimeZone.setDefault(TimeZone.getTimeZone("UTC")); } private Map<JID, VCard> vcards = new HashMap<JID, VCard>(); |