Seen: strftime the output seen time

This commit is contained in:
Brian S. Stephan 2014-03-16 12:47:47 -05:00
parent cd2c44ab20
commit 930523e818
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class Seen(Module):
nick = match.group(1)
try:
seen_nick = SeenNick.objects.get(nick=nick, channel=where)
local_time = timezone.localtime(seen_nick.seen_time)
local_time = timezone.localtime(seen_nick.seen_time).strftime('%Y-%m-%d %H:%M:%S %Z')
return self.irc.reply(event,
"last saw {0:s} in {1:s} at {2:s} saying '{3:s}'."
"".format(seen_nick.nick, seen_nick.channel,