Browse Source

date2word: Fix incorrect month_names index

master
Sergey Kiselev 1 month ago
parent
commit
a26a9ff1f3
  1. 2
      date2word

2
date2word

@ -32,7 +32,7 @@ def pluralize(n, forms):
WD = wdays[time.localtime(time.time()).tm_wday] WD = wdays[time.localtime(time.time()).tm_wday]
D = time.localtime(time.time()).tm_mday 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 Y = time.localtime(time.time()).tm_year
W = WD + num2words(D, lang = 'ru', gender = 'n', to = 'ordinal') + M W = WD + num2words(D, lang = 'ru', gender = 'n', to = 'ordinal') + M

Loading…
Cancel
Save