Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_settime.c
index a532605b6af23b49713ce3f1a0f0c0702a52ce0f..b0b94413d8775b12be6b723d773026456697f54c 100644 (file)
@@ -141,7 +141,7 @@ int ms_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (IsServer(sptr))           /* send to unlagged servers */
   {
     if (feature_bool(FEAT_RELIABLE_CLOCK)) {
-      sprintf_irc(tbuf, TIME_T_FMT, TStime());
+      ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
       parv[1] = tbuf;
     }
 
@@ -151,7 +151,7 @@ int ms_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   }
   else
   {
-    sprintf_irc(tbuf, TIME_T_FMT, TStime());
+    ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
     parv[1] = tbuf;
     if (hunt_server_cmd(sptr, CMD_SETTIME, cptr, 1, "%s %C", 2, parc, parv) !=
         HUNTED_ISME)
@@ -217,7 +217,7 @@ int mo_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (IsServer(sptr))           /* send to unlagged servers */
   {
     if (feature_bool(FEAT_RELIABLE_CLOCK)) {
-      sprintf_irc(tbuf, TIME_T_FMT, TStime());
+      ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
       parv[1] = tbuf;
     }
 
@@ -227,7 +227,7 @@ int mo_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   }
   else
   {
-    sprintf_irc(tbuf, TIME_T_FMT, TStime());
+    ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
     parv[1] = tbuf;
     if (hunt_server_cmd(sptr, CMD_SETTIME, cptr, 1, "%s %C", 2, parc, parv) !=
         HUNTED_ISME)