MyBB Community Forums

Full Version: Time of posting changed after DST went back to standard time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

while being on DST the time of posting was displayed correctly.
After having switched back to standard time last weekend, the posting time of these posts is off by one hour (-1).

Automatic DST correction is active in admin settings and user CP.
Server time is correct.

It seems to affect only posts that were made during DST.

[attachment=32897]
I can confirm that this bug exists and it can be quite confusing, especially when the time of a post is meaningful (e.g. posts that happened at 00:00 could get displayed as posted at 23:00 a few weeks later, because the current date changed to/from DST)

The problem is, that the "my_date" function does always apply/not apply DST to all timestamps if the current time is (not) within DST, instead of checking if the timestamp that needs to be displayed lies within DST.

This bug existed in 1.6 and continues to exist in 1.8. It is quite easy to fix and I already fixed it for our forum months ago with a small patch. I've opened a pull request to better describe the problem/fix:

https://github.com/mybb/mybb/pull/1778

PS: This is just one quick solution suggestion.
Yes, there are many issues with time - including this in moderation
http://community.mybb.com/thread-165257.html
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/1781

Thanks for contributing to MyBB!

Regards,
The MyBB Group