Hi Gijoe
We use d3pipe on persian xoops support website, but we have one problem,
Whene we change xoops language to persian all of modules use Jalali Calendar, but d3pipes use gregorian calendar and we can't change It.
For example in this page I want change publish time to this format ( 1/4/1387 or 1 فروردين 1387 )like other modules that we use.
http://www.irxoops.org/modules/d3pipes/regards
hi hamid.
Quote:
We use d3pipe on persian xoops support website, but we have one problem,
Whene we change xoops language to persian all of modules use Jalali Calendar, but d3pipes use gregorian calendar and we can't change It.
Just an issue of your language constants or templates.
d3pipes displays datetime like:
<{$smarty.const._MEDIUMDATESTRING|date:$entry.pubtime+$timezone_offset}>
Check _MEDIUMDATESTRING of your language set.
Or, modify the template as you like.
Quote:
irmtfan wrotes:
ok i add formatTimestamp like this:
<{$entry.pubtime|formatTimestamp}>
now it shows correct but i want to add $timezone_offset too. could you help me?
Though I don't know formatTimestamp() for persian...
try it once
<{$entry.pubtime|formatTimestamp:"l":$timezone_offset}>