소스 검색

* Changed motd set date to GMT

svn: 358
Bryan Drewery 22 년 전
부모
커밋
ab11dd6f2d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/misc.c

+ 3 - 3
src/misc.c

@@ -466,9 +466,9 @@ void show_motd(int idx)
     strcpy(buf, (char *) CFG_MOTD.gdata);
     who = newsplit(&buf);
     time = atoi(newsplit(&buf));
-    egg_strftime(day, sizeof day, "%A %m/%d/%Y", localtime(&time));
-    egg_strftime(hour, sizeof hour, "%r (%Z)", localtime(&time));
-    dprintf(idx, "Motd set by \002%s\002 on %s at %s\n", who, day, hour);
+    egg_strftime(day, sizeof day, "%A %m/%d/%Y", gmtime(&time));
+    egg_strftime(hour, sizeof hour, "%r (%Z)", gmtime(&time));
+    dprintf(idx, "Motd set by \002%s\002 on %s at %s GMT\n", who, day, hour);
     dumplots(idx, "* ", replace(buf, "\\n", "\n"));
     nfree(buf_ptr);
   } else