You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ now().timestamp()|timestamp_custom('%d')|format(morph='первого') }} ==> восемь первых
{{ now().timestamp()|timestamp_custom('%d')|format(morph='первого', as_ordinal=True) }} ==> TypeError: '>=' not supported between instances of 'str' and 'int'
The text was updated successfully, but these errors were encountered:
Проблема в том, что timestamp_custom по умолчанию во float, если явно задать int, то работает
{{ now().timestamp()|timestamp_custom('%d')|int|format(morph='первого', as_ordinal=True) }} ==> восьмого
Подскажите, можно текущую дату склонять? хочу получить ВОСЬМОГО ноября
{{ now().timestamp()|timestamp_custom('%d') }} ==> 08
{{ now().timestamp()|timestamp_custom('%d')|format(morph='первого') }} ==> восемь первых
{{ now().timestamp()|timestamp_custom('%d')|format(morph='первого', as_ordinal=True) }} ==> TypeError: '>=' not supported between instances of 'str' and 'int'
The text was updated successfully, but these errors were encountered: