From 0e7349cf77a96a1bb2a28640d88b55f2981cd183 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jul 2014 19:37:57 +0000 Subject: [PATCH] Fix utils.str.timestamp for ints. --- src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.py b/src/conf.py index 401703fb0..3bfc0685d 100644 --- a/src/conf.py +++ b/src/conf.py @@ -374,7 +374,7 @@ registerChannelValue(supybot.reply.format, 'time', def timestamp(t): if t is None: t = time.time() - elif isinstance(t, float): + elif isinstance(t, float) or isinstance(t, int): t = time.localtime(t) format = get(supybot.reply.format.time, dynamic.channel) return time.strftime(format, t)