summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-08-15 21:22:36 +0200
committerMaxime Buquet <pep@bouah.net>2020-08-15 21:22:36 +0200
commitc7a46f17126a34fb10194114c831f635c325866b (patch)
tree547dca2f342f7f102ec1f6e2d20776ce78bc1974 /plugins
parent96f3bd72ac2704534388d993f644ec55abdf31b2 (diff)
parent03ef9c8d547872ae7aa87ecec4779bca49309225 (diff)
downloadpoezio-c7a46f17126a34fb10194114c831f635c325866b.tar.gz
poezio-c7a46f17126a34fb10194114c831f635c325866b.tar.bz2
poezio-c7a46f17126a34fb10194114c831f635c325866b.tar.xz
poezio-c7a46f17126a34fb10194114c831f635c325866b.zip
Merge branch 'theme-time-format' into 'master'
move date and time SHORT_FORMAT and LONG_FORMAT to the theme See merge request poezio/poezio!155
Diffstat (limited to 'plugins')
-rw-r--r--plugins/display_corrections.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/display_corrections.py b/plugins/display_corrections.py
index 69df154f..cf8107ce 100644
--- a/plugins/display_corrections.py
+++ b/plugins/display_corrections.py
@@ -26,7 +26,7 @@ from poezio.plugin import BasePlugin
from poezio.common import shell_split
from poezio import tabs
from poezio.ui.types import Message
-from poezio.ui.consts import SHORT_FORMAT
+from poezio.theming import get_theme
class Plugin(BasePlugin):
@@ -56,6 +56,7 @@ class Plugin(BasePlugin):
return None
def command_display_corrections(self, args):
+ theme = get_theme()
args = shell_split(args)
if len(args) == 1:
try:
@@ -68,7 +69,7 @@ class Plugin(BasePlugin):
if message:
display = []
while message:
- str_time = message.time.strftime(SHORT_FORMAT)
+ str_time = message.time.strftime(theme.SHORT_TIME_FORMAT)
display.append('%s %s%s%s %s' %
(str_time, '* '
if message.me else '', message.nickname, ''