Jon W
Well-known member
Relative dates seem to be showing the previous day at midnight. This is not consistent with XenForo_Locale and seems to be incorrect.
In xenforo.js (full version), replace:
with:
In xenforo.js (full version), replace:
Code:
else if (thisTime > today)
{
$element.text(XenForo.phrases.today_at_x
.replace(/%time%/, $element.attr('data-timestring'))); // must use attr for string value
}
else if (thisTime > yesterday)
{
$element.text(XenForo.phrases.yesterday_at_x
.replace(/%time%/, $element.attr('data-timestring'))); // must use attr for string value
}
else if (thisTime > week)
Rich (BB code):
else if (thisTime >= today)
{
$element.text(XenForo.phrases.today_at_x
.replace(/%time%/, $element.attr('data-timestring'))); // must use attr for string value
}
else if (thisTime >= yesterday)
{
$element.text(XenForo.phrases.yesterday_at_x
.replace(/%time%/, $element.attr('data-timestring'))); // must use attr for string value
}
else if (thisTime >= week)