MyBB Community Forums

Full Version: my_date - no relative time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not sure if this needs to be considered a bug, but posting it here, because to me it looks like one. 

This bug only occurs when not the relative time format, but the time format from settings is used. It might be possible, that this is not the case anywhere in the code, then it would be no bug, but dead code ^^

https://github.com/mybb/mybb/blob/featur...s.php#L482 Only today / yesterday is rendered, but no exact time. 

For relative time the exact time is added in case it is more than 12h ago https://github.com/mybb/mybb/blob/featur...s.php#L474

I traced it down to the commit, where the my_date function was adapted to support relative time at to me it looks like adding the time has been forgotten for non relative timestamps ... 

https://github.com/mybb/mybb/commit/508f...cbe5b9L391
There's no reason for not including time there indeed.

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2382

Thanks for contributing to MyBB!

Regards,
The MyBB Group