Jump to content

{datetime} not returning format


Maya Andersen

Recommended Posts

Posted

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.

Posted

Same bug here

I also confirm that only version 4.2.3 creates this sudden bug (no problem with 4.2.2)

@Maya Has the support fixed it?

EDIT : there is no problem using default language (english), it's an internationalisation issue for sure

  • 4 months later...
Posted

Your code? 

Every post in here seems to point to a translation issue. Try the default English and see if it's still an issue. If it's not, your translation is wrong and needs fixed. Talk to whomever did your translation. 

Posted
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.

Posted

Just to clarify this... Yes, this issue is indeed related to custom, outdated languages. Please make sure that you're using the recent version of the file and please get in touch with the translation provider if you're still facing this issue.

Archived

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

  • Recently Browsing   0 members

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