From 70ad2328878aaf8fb14d274e1ec12577d5923ebb Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jul 2014 19:56:17 +0200 Subject: [PATCH] Fix af24192b0f (support for struct_time in utils.str.timestamp). --- src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.py b/src/conf.py index 8015ae60a..401703fb0 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, int): + elif isinstance(t, float): t = time.localtime(t) format = get(supybot.reply.format.time, dynamic.channel) return time.strftime(format, t)