Jump to content

24 second delay on server?


defroster

Recommended Posts

Hello, I am a bit puzzled  :confused:

 

If I schedule a post to show on my website at exactly time 10:00:00 the post will only show when the time hits 10:00:24 = 24 seconds late!!

 

Any ideas why the post always will show with a 24 second delay? Is there one time for the apache server and one time for the mySQL server? If that is the case, how can I sync them?

 

- I have tried restarting the server and there was no change..

Thanks a million /df

Link to comment
https://forums.phpfreaks.com/topic/252616-24-second-delay-on-server/
Share on other sites

You likely have an error in your code that is determining when to show a post (usually a wrong formatting character.)

 

Post your code/query that is responsible for matching/retrieving the offending result along with a sample of the data.

Ok, thanks for reply.

 

The code is:

$sql = "Select videos.*, categories.cat FROM videos, categories
WHERE videos.cat_id = categories.id AND videos.status =1 AND videos.dateposted <= now() ORDER BY dateposted DESC
LIMIT $start, $limit";

 

And the format of the table in the database is 'datetime' and the value stored looks like this:

2011-12-06 12:53:32

Thanks for help

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.