--- NP_TrackBack.php 2007-09-19 08:50:13.000000000 -0700 +++ /home/yuxuanwang/yuxuan.org/wang/test/nucleus/plugins/NP_TrackBack.php 2007-09-19 08:47:56.000000000 -0700 @@ -221,7 +221,7 @@ * Show a list of all trackbacks for this ID */ function showList($tb_id) { - global $manager, $blog, $CONF; + global $manager, $CONF; $res = sql_query(' SELECT @@ -265,7 +265,7 @@ 'title' => $row['title'], 'excerpt' => $row['excerpt'], 'url' => htmlspecialchars($row['url'], ENT_QUOTES), - 'date' => htmlspecialchars(strftime($this->getOption('dateFormat'), $row['timestamp'] + ($blog->getTimeOffset() * 3600)), ENT_QUOTES) + 'date' => htmlspecialchars(strftime($this->getOption('dateFormat'), $row['timestamp']), ENT_QUOTES) ); echo TEMPLATE::fill($this->getOption('tplItem'), $iVars); @@ -566,6 +566,8 @@ if ((!$manager->existsItem($tb_id,0,0)) && ($this->getOption('CheckIDs') == 'yes')) { return _NOSUCH_ITEM; } + + $blog =& $manager->getBlog(getBlogIDFromItemID($tb_id)); // 0. Check if we need to output the list as rss if ($rss) { @@ -618,7 +620,7 @@ title = "'.addslashes($title).'", excerpt = "'.addslashes($excerpt).'", blog_name = "'.addslashes($blog_name).'", - timestamp = '.mysqldate(time()).' + timestamp = '.mysqldate($blog->getCorrectTime()).' WHERE url = "'.addslashes($url).'" AND tb_id = "'.$tb_id.'" @@ -684,7 +686,7 @@ title = "'.addslashes($title).'", excerpt = "'.addslashes($excerpt).'", blog_name = "'.addslashes($blog_name).'", - timestamp = '.mysqldate(time()).' + timestamp = '.mysqldate($blog->getCorrectTime()).' '; $res = @sql_query($query);