From e68d41ffb7fbdbb6e2a7fc03e1b575ac7694f792 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 23 May 2019 00:01:09 +0400 Subject: [PATCH] Added default NTP server --- .../java/io/github/chronosx88/influence/helpers/AppHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/influence/helpers/AppHelper.java b/app/src/main/java/io/github/chronosx88/influence/helpers/AppHelper.java index bfb6e73..d1898fb 100644 --- a/app/src/main/java/io/github/chronosx88/influence/helpers/AppHelper.java +++ b/app/src/main/java/io/github/chronosx88/influence/helpers/AppHelper.java @@ -23,6 +23,7 @@ import io.github.chronosx88.influence.XMPPConnection; public class AppHelper extends MultiDexApplication { private static Application instance; public final static String APP_NAME = "Influence"; + public final static String DEFAULT_NTP_SERVER = "0.europe.pool.ntp.org"; private static String jid; private static RoomHelper chatDB; @@ -84,7 +85,7 @@ public class AppHelper extends MultiDexApplication { boolean isTrueTimeIsOn = false; while(!isTrueTimeIsOn) { try { - TrueTime.build().initialize(); + TrueTime.build().withNtpHost(DEFAULT_NTP_SERVER).initialize(); isTrueTimeIsOn = true; } catch (IOException e) { e.printStackTrace();