The current error that prevents posting, and shows content in the future.

Einstein always asserted that time was relative.
 
Testing the future fix.

the db had this post at 3:20 - which it now shows as correct -
for a bit it had it "in 5 minutes" and that was after 3:20
the last_post date at the thread level was also correct.

so somewhere, something is getting passed in/out that is messing with the user interface.
I checked the template - i thought the timer used on the banner might be messing with things, but it didn't help to shut it off.

will try to catch the next one - which of course could be as soon as i post this.
 
Well - here is an indication that time() is returning the wrong value/getting corrupted.
I should have run to another device. Next time.
device time on the top (6:47), server reported time() on the bottom (6:37).
This is something i coded that only the admin people can see.
(assuming i did it correctly) which i didn't

Here is the server time which is embedded in the bottom of the page.
https://www.mtbnj.com/hello.php


IMG_6395.PNG
 
Last edited:
Well - here is an indication that time() is returning the wrong value/getting corrupted.
I should have run to another device. Next time.
device time on the top (6:47), server reported time() on the bottom (6:37).
This is something i coded that only the admin people can see.
(assuming i did it correctly)

https://www.mtbnj.com/hello.php


View attachment 137414
I clicked the link and it jives with my phone's time exactly (I refreshed as it rolled to the next minute to be sure).
 
Well - here is an indication that time() is returning the wrong value/getting corrupted.
I should have run to another device. Next time.
device time on the top (6:47), server reported time() on the bottom (6:37).
This is something i coded that only the admin people can see.
(assuming i did it correctly)

https://www.mtbnj.com/hello.php


View attachment 137414

20200819_082415.jpg

when did i get promoted? and wheres my paycheck?!?!?!!
 
I called it 100,000 times (seriously) and it was always right.

it is only off in the context of the forum.
 
So i wrote up a script to call the web server for the time, then compared it to local time on my linux instance.
when it found a discrepancy, it then called the server directly for the time - which is correct.


Server date not equal to local call 2 1597849365 1597849955 590
local date from command line
Wed Aug 19 11:12:35 EDT 2020
Server date from command line
Wed Aug 19 08:12:37 PDT 2020

You can see the diff is 590 - which is right around 10 minutes.
 
Back
Top Bottom