aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp
diff options
context:
space:
mode:
authorGravatar Alex Bitney2016-02-07 22:13:22 +0200
committerGravatar Alex Bitney2016-02-07 22:13:22 +0200
commite87db525cb547d30e9e87bf4e3fe7dc4bac332dd (patch)
tree08811226fad88a27618c1f44d293ae3b94143e14 /src/main/java/com/juick/xmpp
parent45b3e65ac62a030f997a4cc5131c424e643d7722 (diff)
parent8012bef3931221133d656c22399c4c8ec582e52e (diff)
Merge branch 'develop' of ssh://den.jabber.ru/var/lib/git/com.juick.http.www into sans_branch
Diffstat (limited to 'src/main/java/com/juick/xmpp')
-rw-r--r--src/main/java/com/juick/xmpp/extensions/JuickMessage.java2
-rw-r--r--src/main/java/com/juick/xmpp/s2s/S2SComponent.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/extensions/JuickMessage.java b/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
index bbc1568e..a7fd1e35 100644
--- a/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
+++ b/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
@@ -45,6 +45,8 @@ public class JuickMessage extends com.juick.Message implements StanzaChild {
public JuickMessage(com.juick.Message msg) {
super(msg);
+ df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ df.setTimeZone(TimeZone.getTimeZone("UTC"));
}
@Override
diff --git a/src/main/java/com/juick/xmpp/s2s/S2SComponent.java b/src/main/java/com/juick/xmpp/s2s/S2SComponent.java
index b7155643..4a4d3413 100644
--- a/src/main/java/com/juick/xmpp/s2s/S2SComponent.java
+++ b/src/main/java/com/juick/xmpp/s2s/S2SComponent.java
@@ -151,8 +151,8 @@ public class S2SComponent implements JuickComponent {
public S2SComponent(JuickApplication application, Properties conf) {
LOGGER.info("component initialized");
- HOSTNAME = conf.getProperty("hostname");
- componentName = conf.getProperty("componentname");
+ HOSTNAME = conf.getProperty("hostname", "juick.com");
+ componentName = conf.getProperty("componentname", "s2s");
STATSFILE = conf.getProperty("statsfile");
this.sql = application.getSql();
this.executorService = application.getExecutorService();