Неправильное формирование даты в TicketMeta
Вывожу так [[!TicketMeta?]], но неправильно формируется дата, везде написанно 13 декабря…
Комментарии: 14
rкодировка UTF-8 настроена?
если вы говорите за эту настройку />
locale = ru_RU.UTF-8
и вывод
и вывод
[[*publishedon:strtotime:date=`%A, %B %e, %Y`]]
да, но тикетс считает количество просмотров…
и кем опубликовано
так как он должен дату отображать?
какой массив
какой массив
[[!TicketMeta? &tpl=``]]
?
а теперь покажите что при
[[TicketMeta?
&tpl=``
]]
Array ( [id] => 32 [type] => document [contentType] => text/html [pagetitle] => tedt [longtitle] => [description] => [alias] => tedt [link_attributes] => [published] => 1 [pub_date] => 0 [unpub_date] => 0 [parent] => 0 [isfolder] => [introtext] => [content] => [richtext] => 1 [template] => 5 [menuindex] => 5 [searchable] => [cacheable] => 1 [createdby] => 1 [createdon] => 2018-01-04 15:36:48 [editedby] => 0 [editedon] => 0 [deleted] => [deletedon] => 0 [deletedby] => 0 [publishedon] => 2018-01-04 15:36:48 [publishedby] => 1 [menutitle] => [donthit] => [privateweb] => [privatemgr] => [content_dispo] => 0 [hidemenu] => [class_key] => modDocument [context_key] => web [content_type] => 1 [uri] => tedt.html [uri_override] => 0 [hide_children_in_tree] => 0 [show_in_tree] => 1 [properties] => [stared] => [unstared] => 1 [voted] => 0 [can_vote] => [rating_minus] => 0 [rating_plus] => 0 [rating_total] => 0 [rating] => 0 [views] => 16 [comments] => 0 [date_ago] => 04 января 2018, 15:36 [stars] => 0 [cant_vote] => 1 [active] => 0 [inactive] => 1 [can_star] => [section.id] => 1 [section.type] => document [section.contentType] => text/html [section.pagetitle] => Главная [section.longtitle] => Поздравляем! [section.description] => [section.alias] => index [section.link_attributes] => [section.published] => 1 [section.pub_date] => 0 [section.unpub_date] => 0 [section.parent] => 0 [section.isfolder] => 0 [section.introtext] => [section.richtext] => 1 [section.template] => 2 [section.menuindex] => 0 [section.searchable] => 1 [section.cacheable] => 1 [section.createdby] => 1 [section.createdon] => 1513173042 [section.editedby] => 1 [section.editedon] => 1515327505 [section.deleted] => 0 [section.deletedon] => 0 [section.deletedby] => 0 [section.publishedon] => 0 [section.publishedby] => 0 [section.menutitle] => [section.donthit] => 0 [section.privateweb] => 0 [section.privatemgr] => 0 [section.content_dispo] => 0 [section.hidemenu] => 0 [section.class_key] => modDocument [section.context_key] => web [section.content_type] => 1 [section.uri] => index.html [section.uri_override] => 0 [section.hide_children_in_tree] => 0 [section.show_in_tree] => 1 [section.properties] => [internalKey] => 1 [fullname] => Администратор по умолчанию [email] => ask@ru7lan.ru [phone] => [mobilephone] => [blocked] => 0 [blockeduntil] => 0 [blockedafter] => 0 [logincount] => 40 [lastlogin] => 1516479220 [thislogin] => 1516647951 [failedlogincount] => 0 [sessionid] => 34ij368f30mrojljbai0kgnfr3 [dob] => 0 [gender] => 0 [address] => [country] => [city] => [state] => [zip] => [fax] => [photo] => [comment] => [website] => [extended] => [username] => alamis [files] => [has_files] => )
У Вас передается [date_ago] => 04 января 2018, 15:36
В чанке custom.Tickets.meta должно быть:
В чанке custom.Tickets.meta должно быть:
[[+date_ago]]
замени date_ago в шаблоне на
[[+publishedon:strtotime:date=`%d %B %Y`]]
тогда просто
[[+publishedon]]
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.