Неправильное формирование даты в TicketMeta

Вывожу так [[!TicketMeta?]], но неправильно формируется дата, везде написанно 13 декабря…
Руслан Попков
22 января 2018, 14:48
modx.pro
1 161
0

Комментарии: 14

Taras
22 января 2018, 19:04
0
rкодировка UTF-8 настроена?
    Руслан Попков
    23 января 2018, 16:59
    0
    если вы говорите за эту настройку />
      Taras
      23 января 2018, 17:08
      0
      locale = ru_RU.UTF-8
      и вывод
      [[*publishedon:strtotime:date=`%A, %B %e, %Y`]]
        Руслан Попков
        24 января 2018, 22:08
        0
        да, но тикетс считает количество просмотров…
          Руслан Попков
          24 января 2018, 22:09
          0
          и кем опубликовано
            Taras
            24 января 2018, 22:55
            0
            так как он должен дату отображать?
            какой массив
            [[!TicketMeta? &tpl=``]]
            ?
              Руслан Попков
              25 января 2018, 17:10
              0
              [[TicketMeta?
              &tpl=`custom.Tickets.meta`
              ]]

              как видите везде дата одинаковая

                Taras
                25 января 2018, 17:17
                0
                а теперь покажите что при
                [[TicketMeta?
                &tpl=``
                ]]
                  Руслан Попков
                  25 января 2018, 17:31
                  0
                  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] => )
                    Taras
                    25 января 2018, 17:58
                    0
                    У Вас передается [date_ago] => 04 января 2018, 15:36
                    В чанке custom.Tickets.meta должно быть:
                    [[+date_ago]]
                      Руслан Попков
                      25 января 2018, 18:05
                      0
                      все так

                        Taras
                        25 января 2018, 18:18
                        0
                        замени date_ago в шаблоне на
                        [[+publishedon:strtotime:date=`%d %B %Y`]]
                        Руслан Попков
                        26 января 2018, 15:47
                        0
                        так пропадает дата

                        Taras
                        26 января 2018, 16:34
                        0
                        тогда просто
                        [[+publishedon]]
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    14