From 186f4344184588d71b59fa8f334f6efa7674cd6f Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 1 Oct 2002 19:24:19 +0000 Subject: [PATCH] Resolved two incompatibilities with JDK 1.3 --- src/helma/util/Logger.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helma/util/Logger.java b/src/helma/util/Logger.java index ccd51184..c9ff9d97 100644 --- a/src/helma/util/Logger.java +++ b/src/helma/util/Logger.java @@ -82,11 +82,11 @@ public final class Logger { try { if (logfile.exists () && logfile.lastModified () < lastMidnight ()) { - // rotate if a log file exists and is NOT from today + // rotate if a log file exists and is NOT from today rotateLogFile (); } else { // create a new log file, append to an existing file - writer = new PrintWriter (new FileWriter (logfile, true), false); + writer = new PrintWriter (new FileWriter (logfile.getAbsolutePath(), true), false); } } catch (IOException iox) { System.err.println ("Error creating log "+canonicalName+": "+iox); @@ -371,7 +371,7 @@ public final class Logger { cal.set (Calendar.SECOND, 1); // for testing, rotate the logs every minute: // cal.set (Calendar.MINUTE, 1 + cal.get(Calendar.MINUTE)); - return cal.getTimeInMillis (); + return cal.getTime().getTime (); } public static long lastMidnight () {