aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/server')
-rw-r--r--src/jake2/server/SV_CCMDS.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/jake2/server/SV_CCMDS.java b/src/jake2/server/SV_CCMDS.java
index 76e348d..f890cab 100644
--- a/src/jake2/server/SV_CCMDS.java
+++ b/src/jake2/server/SV_CCMDS.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 18.01.2004 by RST.
-// $Id: SV_CCMDS.java,v 1.3 2004-07-09 06:50:49 hzi Exp $
+// $Id: SV_CCMDS.java,v 1.4 2004-07-14 15:34:24 cawe Exp $
package jake2.server;
@@ -32,7 +32,7 @@ import jake2.util.Lib;
import jake2.util.Vargs;
import java.io.*;
-import java.util.Date;
+import java.util.Calendar;
public class SV_CCMDS extends SV_ENTS {
@@ -433,11 +433,15 @@ public class SV_CCMDS extends SV_ENTS {
if (!autosave) {
//time( aclock);
//newtime = localtime( aclock);
- Date newtime = new Date();
+ Calendar c = Calendar.getInstance();
comment =
Com.sprintf(
"%2i:%2i %2i/%2i ",
- new Vargs().add(newtime.getHours()).add(newtime.getMinutes()).add(newtime.getMonth() + 1).add(newtime.getDay()));
+ new Vargs()
+ .add(c.get(Calendar.HOUR_OF_DAY))
+ .add(c.get(Calendar.MINUTE))
+ .add(c.get(Calendar.MONTH) + 1)
+ .add(c.get(Calendar.DAY_OF_MONTH)));
comment += sv.configstrings[CS_NAME];
}
else { // autosaved