mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Time.tztime: Don't display microseconds
There's no reason for displaying them under most circumstances that I can think of.
This commit is contained in:
parent
283cdb3b1d
commit
b697536db5
@ -191,7 +191,7 @@ class Time(callbacks.Plugin):
|
|||||||
except pytz.UnknownTimeZoneError:
|
except pytz.UnknownTimeZoneError:
|
||||||
irc.error(_('Unknown timezone'))
|
irc.error(_('Unknown timezone'))
|
||||||
return
|
return
|
||||||
irc.reply(str(datetime.now(timezone)))
|
irc.reply(datetime.now(timezone).strftime('%F %T%z'))
|
||||||
tztime = wrap(tztime, ['text'])
|
tztime = wrap(tztime, ['text'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user