From: Matthew Vernon Date: Thu, 17 Jan 2019 18:01:50 +0000 (+0000) Subject: Output the date of first mention, not the current date X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=commitdiff_plain;h=0bde0b717ce33db85e498fd577e99bd2a1e65922;p=irc.git Output the date of first mention, not the current date ...this is in the code path where the URL was mentioned on a previous date, so we should output the date of first mention (self.localfirst) not the current date (n). --- diff --git a/commands.py b/commands.py index 698bfdb..5f436c6 100755 --- a/commands.py +++ b/commands.py @@ -412,7 +412,7 @@ class UrlLog: n=time.localtime(time.time()) s="%02d:%02d" % (self.localfirst.tm_hour,self.localfirst.tm_min) if n.tm_yday != self.localfirst.tm_yday: - s+=time.strftime(" on %d %B", n) + s+=time.strftime(" on %d %B", self.localfirst) return s def urltype(self): z=min(len(urlinfos)-1, self.count-1)