MyBB Community Forums

Full Version: Future Timestamps are always displayed as "in XXXXX minutes"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently there is a problem with displaying future timestamps in MyBB.

The only location where future timestamps seem to be displayed in "relative" format, is when a user opens his usercp and sees his own warning end times. Currently it will always be displayed in minutes, even if it is months in the future.

[Image: 2015-01-25_13-14-40-aAKcp1.png]

This will only happen in usercp.php reviewing your own warnings, not in warnings.php, where e.g. moderators would check the warnings of a user (there the time is always displayed in the "normal" date/time format that was used in MyBB 1.6.

The problem is the logic for the new relative timestamp format and very easy to fix.


Here is a matching pull request that fixes the problem with very small changes:

https://github.com/mybb/mybb/pull/1779
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/1780

Thanks for contributing to MyBB!

Regards,
The MyBB Group