From 0bde0b717ce33db85e498fd577e99bd2a1e65922 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Thu, 17 Jan 2019 18:01:50 +0000 Subject: [PATCH] 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). --- commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2