The scheduled dates of advertising are not recorded in the database.
Can you review the function ad_nodeapi() with $op == "insert"

Before :
db_query("INSERT INTO {ads} (aid, uid, adstatus, adtype, redirect, autoactivate, autoexpire, activated, maxviews, maxclicks) VALUES(%d, %d, '%s', '%s', '%s', %d, %d, %d, %d, %d)", $node->nid, $node->uid, $node->adstatus, $node->adtype, url('ad/redirect/'. $node->nid, array('absolute' => TRUE)), $node->autoactivate ? strtotime($node->autoactivate) : '', $node->autoexpire ? strtotime($node->autoexpire) : '', $activated, $node->maxviews, $node->maxclicks);

After :
db_query("INSERT INTO {ads} (aid, uid, adstatus, adtype, redirect, autoactivate, autoexpire, activated, maxviews, maxclicks) VALUES(%d, %d, '%s', '%s', '%s', %d, %d, %d, %d, %d)", $node->nid, $node->uid, $node->adstatus, $node->adtype, url('ad/redirect/'. $node->nid, array('absolute' => TRUE)), $node->autoactivate, $node->autoexpire, $activated, $node->maxviews, $node->maxclicks);

CommentFileSizeAuthor
#1 ad-insert-date.patch1.16 KBjohn franklin

Comments

john franklin’s picture

Status: Active » Fixed
StatusFileSize
new1.16 KB

Fixed. Thanks for the patch.

(Patch file attached here for others who need to apply to their deployments.)

grasmash’s picture

I was experiencing the same problem. Has this been committed?

john franklin’s picture

Yes, it is committed to dev. (commit)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.