Fix utils.str.timestamp for ints.

This commit is contained in:
Valentin Lorentz 2014-07-31 19:37:57 +00:00
parent e9b58f7820
commit 0e7349cf77
1 changed files with 1 additions and 1 deletions

View File

@ -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)