]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
gmtime
[infobot.git] / src / IRC / IrcHooks.pl
index fbf99ba931f1d6f4f0d2536ea56e27b8ec6e17d4..34456c63216d41bf720d19f6ef65cc75807c9786 100644 (file)
@@ -955,7 +955,7 @@ sub on_quit {
 
        $netsplit{lc $nick} = time();
        if (!exists $netsplitservers{$1}{$2}) {
-           &status("netsplit detected between $1 and $2 at [".scalar(localtime)."]");
+           &status("netsplit detected between $1 and $2 at [".scalar(gmtime)."]");
            $netsplitservers{$1}{$2} = time();
        }
     }
@@ -1058,7 +1058,7 @@ sub on_topicinfo {
 
     my $timestr;
     if (time() - $time > 60*60*24) {
-       $timestr        = "at ". localtime $time;
+       $timestr        = "at ". gmtime $time;
     } else {
        $timestr        = &Time2String(time() - $time) ." ago";
     }