mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fix utils.str.timestamp for ints.
This commit is contained in:
parent
4a3d39e747
commit
0f174d9ee0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user