Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2017-10-08 11:07:47

etc
Developer
Registered: 2010-11-11
Posts: 5,235
Website GitHub

Re: etc_date : custom dates and calendars

Try to replace <txp:comment_time /> in comments form with

<txp:etc_date timestamp='<txp:comment_time format="%s" />'
    calendar="jalali" lang="fa_IR" format="%d %B %Y" />

Offline

#26 2023-05-08 19:56:07

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 278

Re: etc_date : custom dates and calendars

I upgraded my Textpattern version to 4.8.8 and changed php7 to php8 as well.
Now the following error comes anywhere if I used etc_date:
Tag error: <txp:etc_date date="posted" calendar="jalali" format="%d %B %Y" lang="fa_AF" /> -> Warning: Undefined array key 1 while parsing form None on page Default

Offline

#27 2023-05-10 11:20:39

etc
Developer
Registered: 2010-11-11
Posts: 5,235
Website GitHub

Re: etc_date : custom dates and calendars

Thanks for the report, I will take a look. Meanwhile, if intl extension is enabled on your server, you can try

<txp:posted calendar="persian" lang="fa_AF" format="%d %B %Y" />

Offline

Board footer

Powered by FluxBB