]> kaliko git repositories - sid.git/commitdiff
feeds: Better date formating, explicit timezone
authorkaliko <kaliko@azylum.org>
Sat, 24 Oct 2020 17:57:11 +0000 (19:57 +0200)
committerkaliko <kaliko@azylum.org>
Sat, 24 Oct 2020 17:57:11 +0000 (19:57 +0200)
sid/feeds.py

index 490d89de5816b230b5f3b91dc0f2afb5ffb5c548..1d6ed78f6e9a75b6af1744e1f066073e4eaa074f 100644 (file)
@@ -174,7 +174,8 @@ class Feeds(Plugin):
         * ``!feeds``      : registred feeds list
         * ``!feeds last`` : last check time"""
         if 'last' in args:
-            self.reply(rcv, 'Last feeds check: %s' % self.th_mon.last_check)
+            date = '{:%Y-%m-%d %H:%M} (utc)'.format(self.th_mon.last_check)
+            self.reply(rcv, f'Last feeds check: {date}')
             return
         html = ['<a href="{0}">{1}</a>'.format(html_escape(u),
                                                html_escape(u[7:])