From a26a9ff1f39d88da5e87174cdd8782551be3593b Mon Sep 17 00:00:00 2001 From: Sergey Kiselev Date: Fri, 8 Nov 2024 13:41:38 +0500 Subject: [PATCH] date2word: Fix incorrect month_names index --- date2word | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date2word b/date2word index 90f0071..9d90481 100755 --- a/date2word +++ b/date2word @@ -32,7 +32,7 @@ def pluralize(n, forms): WD = wdays[time.localtime(time.time()).tm_wday] D = time.localtime(time.time()).tm_mday -M = month_names[time.localtime(time.time()).tm_mon] +M = month_names[time.localtime(time.time()).tm_mon - 1] Y = time.localtime(time.time()).tm_year W = WD + num2words(D, lang = 'ru', gender = 'n', to = 'ordinal') + M