1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug DateTime not parse after insert element

Discussion in 'Resolved Bug Reports' started by Nobita.Kun, Aug 27, 2015.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    Hi. This is more steps but i will give it now.

    In php i return an HTML date by call like this.

    $datetimeHtml XenForo_Template_Helper_Core::dateTime(

    json_encode('datetimeHtml' => $datetimeHtml);
    Then in js I have do this.

    The result show full time. Eg: Aug 27, 2015 at 6:55 PM. It should show A few seconds.
  2. Mike

    Mike XenForo Developer Staff Member

    Activation of the JS handlers, including the timestamp handler, is based on descendants of the element(s) being inserted. If you're inserting that directly, you'll need to activate it manually (likely via the parent).

Share This Page