Skip to content

Sunday, February 24th?

Levers, pulleys, widgets, computers, and other gearhead talk.

Moderators: arclight, happywaffle

  • User avatar
  • Aden Offline
  • Posts: 2543
  • Joined: October 3rd, 2006, 10:06 am
  • Location: West Linn, OR
  • Contact:

Sunday, February 24th?

Post by Aden »

Has anyone else noticed that all of our posts today are showing as having been done on Sunday, Feb. 24??? BUT it's not... As far as I can telll, this is Thursday, January 24. What gives?
http://www.artofchange.com
Change is inevitable. Progress is not. Discover the difference YOU can make.
  • User avatar
  • Mo Daviau Offline
  • Posts: 1643
  • Joined: August 11th, 2005, 3:14 pm
  • Location: Austin then Ann Arbor, MI (as of 8/11)
  • Contact:

Post by Mo Daviau »

Bob reset the server this morning. I'll let him know.
  • User avatar
  • Aden Offline
  • Posts: 2543
  • Joined: October 3rd, 2006, 10:06 am
  • Location: West Linn, OR
  • Contact:

Post by Aden »

Thanks MO :) all is clear now.
http://www.artofchange.com
Change is inevitable. Progress is not. Discover the difference YOU can make.

Post by vine311 »

Something is not right. When I click on the "new posts" link up top it tells me I can't do a search so soon after my last even if I haven't done any searches at all. Also, when I read a message it is not marked as being "read" at all. It just stays that orange "unread" color. Staring at me...mocking me...urge to kill...rising.
"Have you ever scrapped high?" Jon Bolden "Stabby" - After School Improv

http://www.improvforevil.com
  • User avatar
  • admin Offline
  • Site Admin
  • Posts: 14
  • Joined: December 22nd, 2004, 10:59 pm

Post by admin »

Ok, here's the story as I understand it:

I updated all my systems today and rebooted everything. The only problem I noticed was that the system clock was off by a month. No big deal - sync the system with a known-good time source, then start the program that sits in the background to keep time synced.

That can cause some issues especially if you're setting the clock back.

That will cause issues if your popular (but badly written) forum software subtracts the time of a user's last post from the current time to judge whether a user is flooding the forums. If that time difference is negative, something is wrong, and it's not because the user is doing anything evil.

Once Sherman and Mr. Peabody fire up the Wayback Machine and reset the system clock, the forum database has already stored the time of their last post and will prevent them from posting for (in this case) a month. Crap.

The fix is to stick a coathanger into the database and wiggle it around until the busticated post dates are set to something reasonable. For future reference, that fix is:

Code: Select all

UPDATE phpbb2_posts SET post_time = UNIX_TIMESTAMP(SUBDATE(FROM_UNIXTIME(post_time), INTERVAL 1 MONTH)) WHERE FROM_UNIXTIME(post_time) > '2008-01-25';
Things should be less retarded now, or, more accurately, roughly as retarded as normal.

Thanks for your patience,

Mr. Server Person
  • User avatar
  • Jessica Offline
  • Posts: 1846
  • Joined: February 24th, 2006, 10:15 am
  • Contact:

Post by Jessica »

I'm still being told I can't make a new search that quickly. Is there anything I can do directly? Where would I put that bit of code?

Thanks,
Jessica

PS - bob you are awesome for keeping this up and running!
  • User avatar
  • Marc Majcher Offline
  • Posts: 1621
  • Joined: January 24th, 2006, 12:40 am
  • Location: Austin, TX
  • Contact:

Post by Marc Majcher »

admin wrote:

Code: Select all

UPDATE phpbb2_posts SET post_time = UNIX_TIMESTAMP(SUBDATE(FROM_UNIXTIME(post_time), INTERVAL 1 MONTH)) WHERE FROM_UNIXTIME(post_time) > '2008-01-25';
That's your suggestion for our next scene.
The Bastard
Improv For Evil
"new goal: be quoted in Marc's signature." - Jordan T. Maxwell
  • User avatar
  • sara farr Offline
  • Posts: 3080
  • Joined: August 14th, 2005, 9:49 pm
  • Location: ATX

Post by sara farr »

Is this fixed??? Do we log off and then log back on??
  • User avatar
  • admin Offline
  • Site Admin
  • Posts: 14
  • Joined: December 22nd, 2004, 10:59 pm

Post by admin »

Most of it should be fixed. I had to reset the time fields in a couple of tables (sessions, search results, topics, etc.) to convince the software that nobody's flooding the systems with searches.

It just goes to show you how important accurate time is to computers.

Also I found the reason for the original problem - somehow the hardware clock was set a month in advance. No idea why, but it's fixed now.
  • User avatar
  • Jessica Offline
  • Posts: 1846
  • Joined: February 24th, 2006, 10:15 am
  • Contact:

Post by Jessica »

Yea, Bob! I could do a search for new posts this AM and I feel so much better!

Jessica

Post by slappywhite »

My RSS feed is still all screwy, it's only showing the same 4 posts, i'm guessing thats because the timestamps on those 4 posts are in the future? Anyone else having this issue? (does anyone but me use the RSS feed?)
Post Reply