Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello guys,

So I am using a editable field with datetime as shown below to let user manage the date time of the record.
Code: Select all
   <cms:editable
      type='datetime'
      name='kayit_tarihi'
      label='Oluşturma Tarihi'
      months='Ocak, Şubat, Mart, Nisan, Mayıs, Haziran, Temmuz, Ağustos, Eylül, Ekim, Kasım, Aralık'
      default_time = '@current'
   />


All seems good but when I want to show kayit_tarihi on page things are not that good. Can I show these values? Or is there a Turkish support for cms:date?
I tried
Code: Select all
<cms:date kayit_tarihi format='%d %B, %Y' locale='turkish' charset='ISO-8859-3'/>

but did not get it. Also we have short date format like January - Ocak, JAN - OCA.
Is there a way I can use these?

Thank you very much.
Yes, you must find out the proper value for parameter 'locale'. There are several possible notations and which one would work is a task for you to find out. Now you know that locale='turkish' is not working. Try to find and test the others,
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
trendoman wrote: Yes, you must find out the proper value for parameter 'locale'. There are several possible notations and which one would work is a task for you to find out. Now you know that locale='turkish' is not working. Try to find and test the others,


Hello @trendoman!

Well, the code I have shared above did not worked on my local server however same code worked like a charm on my web server. So for anyone needs Turkish dates the code below works, all you need is to make sure your server locals are set correctly.

Code: Select all
<cms:date kayit_tarihi format='%d %B, %Y' locale='turkish' charset='ISO-8859-3'/>
3 posts Page 1 of 1