--- NP_Referrer.php 2007-09-19 09:19:33.000000000 -0700 +++ /home/yuxuanwang/yuxuan.org/wang/test/nucleus/plugins/NP_Referrer.php 2007-09-19 09:19:26.000000000 -0700 @@ -68,7 +68,7 @@ function doSkinVar($skintype, $what = 'last', $amount = 10) { - global $manager, $blog, $CONF; + global $manager, $CONF; global $itemid, $skinname; $options = func_get_args(); @@ -229,7 +229,7 @@ if (isset($ref['refWhen'])) { - $rVars['date'] = htmlspecialchars(strftime($this->getOption('dateFormat'), $ref['refWhen'] + ($blog->getTimeOffset() * 3600))); + $rVars['date'] = htmlspecialchars(strftime($this->getOption('dateFormat'), $ref['refWhen'])); } if ($what == 'last') @@ -309,6 +309,7 @@ if ($itemid != 0) $skin = $skintype; + $blog =& $manager->getBlog(getBlogIDFromItemID($itemid)); if (!$this->count == 1) { @@ -495,7 +496,7 @@ SET ref_item = "'.$itemid.'", ref_skin = "'.addslashes($skin).'", - ref_when = NOW(), + ref_when = '.mysqldate($blog->getCorrectTime()).', ref_id = "'.addslashes($id).'" '); }