Commit 260c29f9 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Use locale-specific date formatting.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1349 b35dd754-fafc-0310-a699-88a17e54d16e
parent dc5db8cf
...@@ -41,7 +41,6 @@ import java.io.File; ...@@ -41,7 +41,6 @@ import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.text.DateFormat;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
...@@ -208,11 +207,10 @@ public class XMPPServer { ...@@ -208,11 +207,10 @@ public class XMPPServer {
pluginManager.start(); pluginManager.start();
// Log that the server has been started // Log that the server has been started
DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
DateFormat.MEDIUM);
List params = new ArrayList(); List params = new ArrayList();
params.add(version.getVersionString()); params.add(version.getVersionString());
params.add(formatter.format(new Date())); params.add(JiveGlobals.formatDateTime(new Date()));
String startupBanner = LocaleUtils.getLocalizedString("startup.name", params); String startupBanner = LocaleUtils.getLocalizedString("startup.name", params);
Log.info(startupBanner); Log.info(startupBanner);
System.out.println(startupBanner); System.out.println(startupBanner);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment