Jump to content

{datetime} not returning format


Maya Andersen

Recommended Posts

What is going wrong when this template part in forumRow-template:

{datetime="$lastPost['date']"} in forumRow-template

Returns:

<time datetime="2017-09-05T11:45:05Z" title="05-09-2017 13:45 " data-short="%d hours">
	5 hours ago
</time>

Instead of:

<time datetime="2017-09-05T11:45:05Z" title="05-09-2017 13:45 " data-short="5 hours">
	5 hours ago
</time>

The forumrow-template seems to be correctly up to date with the one from the update. Also: \system\DateTime\DateTime.php is up-to-date.

I cannot figure out where to look to fix it? I think the problem came after we updated to 4.2.3 yesterday.

Link to comment
Share on other sites

  • 4 months later...
16 hours ago, Fred Krugger said:

this issue is only version mobile... 

That doesn't answer my question... Are you using an unmodified English language pack?  Or are you using a custom translated language? 

If the former, switch to the default English language and see if that fixes the problem.  If it does, your custom translation has a bug in need of fixing. 

Alternatively, feel free to submit a ticket to IPS to have them investigate.  They will be able to access your site directly and tell you if the above is the issue or if there is something else going on here.  Though, based on previous posts in this topic, they all pointed to a broken custom translation.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...