--- projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java 2001/03/15 00:44:31 1.9 +++ projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java 2001/03/26 15:33:59 1.11 @@ -13,7 +13,7 @@ import java.util.Locale; * a toString String to send to the logger. * * @author $Author: tdb $ - * @version $Id: FormatName.java,v 1.9 2001/03/15 00:44:31 tdb Exp $ + * @version $Id: FormatName.java,v 1.11 2001/03/26 15:33:59 tdb Exp $ */ public class FormatName { @@ -64,7 +64,7 @@ public class FormatName { * @return The string to be written to the log. */ public static String formatLogLine(String source, int verbosity, String message){ - String date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM, Locale.UK).format(new Date()); + String date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM).format(new Date()); return "[" + date + "] [" + VERBOSITY_NAMES[verbosity] + "] " + source + ": " + message; } @@ -80,7 +80,7 @@ public class FormatName { private static String tidyClassName(String className) { String prefix = "uk.org.iscream"; if (className.startsWith(prefix)) { - return className.substring(prefix.length()); + return className.substring(prefix.length()+1); } return className; }