Solved: 8 Years, 3 Weeks ago Timestamp incorrect in posts.
#1
Solved: 8 Years, 3 Weeks ago
I am on 1.8.7.

Today I noticed the timestamp was wrong, but off by 2 hours (2 hours later than they should be).

It was fine until today.

The default timezone offset, and the Daylight savings time options, are correct.
Reply
#2
Solved: 8 Years, 3 Weeks ago
Can you check the time on the server itself?
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#3
Solved: 8 Years, 3 Weeks ago
(2017-01-05, 08:35 PM)Matt Wrote: Can you check the time on the server itself?

I can connect via an FTP client (later this evening).  But I don't have SSH access.

Is there a way to check via FTP?
Reply
#4
Solved: 8 Years, 3 Weeks ago
(2017-01-05, 08:35 PM)Matt Wrote: Can you check the time on the server itself?

(2017-01-05, 09:44 PM)nuraman00 Wrote:
(2017-01-05, 08:35 PM)Matt Wrote: Can you check the time on the server itself?

I can connect via an FTP client (later this evening).  But I don't have SSH access.

Is there a way to check via FTP?

Bump?
Reply
#5
Solved: 8 Years, 3 Weeks ago
Try putting this in a test PHP file:

echo date('H:i:s', gmmktime());

This should display the current time in GMT - if it doesn't, it sounds like the server time is wrong.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#6
Solved: 8 Years, 3 Weeks ago
I got this message:

+++++++

Strict Standards: gmmktime(): You should be using the time() function instead in [...] on line 3
21:48:03

++++++++

The timestamp that it printed appears to be 2 hours ahead of my time zone.

But, that error message makes me think something went wrong.

So I added another line but just used time().

Both returned the same time.

So, does it sound like the server time is wrong?

If so, what should I say to my host?
Reply
#7
Solved: 8 Years, 3 Weeks ago
(2017-01-05, 08:08 PM)nuraman00 Wrote: I am on 1.8.7.

Today I noticed the timestamp was wrong, but off by 2 hours (2 hours later than they should be).

It was fine until today.

The default timezone offset, and the Daylight savings time options, are correct.

The same thing happened to me. Now everything is fine.
Reply
#8
Solved: 8 Years, 3 Weeks ago
Just ask them to check it is correct and they should know what to do.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#9
Solved: 8 Years, 3 Weeks ago
I know that the MyBB Group worked on some timezone related fixes (See: https://github.com/mybb/mybb/commit/1561...86ed06644a) which will make it's way into MyBB 1.8.10. If you want to be a brave soul like me you can keep your MyBB updated on a daily basis by keeping track of commits and and manually applying things. Or you can wait a month or two and hopefully MyBB 1.8.10 will push out their easy update Smile
Software Engineer specializing in C# Program Development
Reply
#10
Solved: 8 Years, 3 Weeks ago
Those changes are just to typecast some values to floats to fix PHP 7.1 compatibility, they won't help this issue.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)