Update of /cvsroot/jake2/jake2/src/jake2/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21926/src/jake2/server
Modified Files:
SV_CCMDS.java
Log Message:
deprecated java.util.Date replaced
Index: SV_CCMDS.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/server/SV_CCMDS.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SV_CCMDS.java 9 Jul 2004 06:50:49 -0000 1.3
--- SV_CCMDS.java 14 Jul 2004 15:34:24 -0000 1.4
***************
*** 33,37 ****
import java.io.*;
! import java.util.Date;
public class SV_CCMDS extends SV_ENTS {
--- 33,37 ----
import java.io.*;
! import java.util.Calendar;
public class SV_CCMDS extends SV_ENTS {
***************
*** 434,442 ****
//time( aclock);
//newtime = localtime( aclock);
! Date newtime = new Date();
comment =
Com.sprintf(
"%2i:%2i %2i/%2i ",
! new Vargs().add(newtime.getHours()).add(newtime.getMinutes()).add(newtime.getMonth() + 1).add(newtime.getDay()));
comment += sv.configstrings[CS_NAME];
}
--- 434,446 ----
//time( aclock);
//newtime = localtime( aclock);
! Calendar c = Calendar.getInstance();
comment =
Com.sprintf(
"%2i:%2i %2i/%2i ",
! 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];
}
|