From ed002d41b120e49e648879975af68d5b8fdd4823 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Mon, 10 Dec 2018 16:30:35 +0000 Subject: [PATCH] 0-pad times (so 13:03 rather than 13:3) --- commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.py b/commands.py index 3442dce..2864bb9 100755 --- a/commands.py +++ b/commands.py @@ -401,7 +401,7 @@ class UrlLog: return max(self.lastseen,self.lastasked) def firstmen(self): n=time.localtime(time.time()) - s="%d:%d" % (self.localfirst.tm_hour,self.localfirst.tm_min) + 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) return s -- 2.30.2