[mw-devel] MW3 r970 - trunk/src

arthur at sucs.org arthur at sucs.org
Thu Aug 30 13:38:10 BST 2007


Author: arthur
Date: 2007-08-30 13:38:10 +0100 (Thu, 30 Aug 2007)
New Revision: 970

Modified:
   trunk/src/Makefile
   trunk/src/perms.c
Log:
make the log times UTC


Modified: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile	2007-07-27 19:34:23 UTC (rev 969)
+++ trunk/src/Makefile	2007-08-30 12:38:10 UTC (rev 970)
@@ -7,7 +7,7 @@
 VERSION_MAJOR= 2
 VERSION_MINOR= 15
 # Change this one on feature increases/fixes, return to 0 on branch
-VERSION_TWEAK= 0
+VERSION_TWEAK= 2
 
 # Full version number
 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_TWEAK)

Modified: trunk/src/perms.c
===================================================================
--- trunk/src/perms.c	2007-07-27 19:34:23 UTC (rev 969)
+++ trunk/src/perms.c	2007-08-30 12:38:10 UTC (rev 970)
@@ -353,7 +353,7 @@
 	t=time(0);
 
 	vsnprintf(addstr, LOGLINESIZE-1, fmt, ap);
-	snprintf(outmsg, LOGLINESIZE-1, "%s", ctime(&t));
+	snprintf(outmsg, LOGLINESIZE-1, "%s", asctime(gmtime(&t)));
 	outmsg[strlen(outmsg)-1] = ' ';
 
 	snprintf(new, LOGLINESIZE-2, "%s| %*s | %s", outmsg, NAMESIZE, user->name, addstr);





More information about the mw-devel mailing list