Date disappears upon page refresh (NewsItem)

Hi you guys.
So I was learning how to customize Plone on and tried to follow the tutorial on adding the publishing date to my NewsItem posts. I've also tried to spice it up a bit and add a tiny icon to the side of the date.
Thing is, whenever I click on a news post I get the date it was posted on, but if I refresh the page, it simply disappears. It also happens if I go from one news post to another one. It will display on the first one I open, but if I come back and try another news page it won't display the publishing date (it does if you just refresh the page).

Here's the code I'm using :

<html xmlns="" xml:lang="en"

<metal:content-core fill-slot="content-core">
<metal:content-core define-macro="content-core"
                    tal:define="toc context/table_of_contents|nothing;">
<i class="glyphicon glyphicon-calendar" />
    ${python: plone_view.toLocalizedTime(context.Date(),long_format=1)}
  <div id="parent-fieldname-text"
      tal:content="structure python:context.text.output_relative_to(view.context)"
      tal:attributes="class python: toc and 'pat-autotoc' or ''" />


Many thanks in advance!

Best regards,


What happens if you remove the i class or replace the i tag with a div tag to contain the date?

I also think that expression outputs the current date and time, not the publication date and time


Removing the i tag and that class just really removes the icon I mentioned before. As for the div to contain the date, wont´t change a thing either :frowning: .

I forgot to mention previously that I'm using a Plone 5 environment. Could it be because of some incompatibility (maybe jbot)?