summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-25 14:23:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-25 14:23:38 -0400
commitcba4b50e44c501b5f73ba91179a6c8424b81caa8 (patch)
treedcd03714ae3ece9a3cc2d7c40d9661a20e8c9b52 /scripts
parent55b6e17ee1bcbf09be085a63b39534c7144547f2 (diff)
use common_sql_now() instead of DB_DataObject_Cast
darcs-hash:20080825182338-84dde-ec0edef9469b294b7e23945f1bc7d810da988ed7.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xmppdaemon.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index 2fe99bbcf..76bd413f9 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -345,7 +345,7 @@ class XMPPDaemon {
# (or old)?
$this->log(LOG_INFO, 'claiming queue item = ' . $qi->notice_id);
$orig = clone($qi);
- $qi->claimed = DB_DataObject_Cast::dateTime();
+ $qi->claimed = common_sql_now();
$result = $qi->update($orig);
if ($result) {
$this->log(LOG_INFO, 'claim succeeded.');
@@ -448,7 +448,7 @@ class XMPPDaemon {
# working around some weird DB_DataObject behaviour
$confirm->whereAdd(''); # clears where stuff
$original = clone($confirm);
- $confirm->claimed = DB_DataObject_Cast::dateTime();
+ $confirm->claimed = common_sql_now();
$result = $confirm->update($original);
if ($result) {
$this->log(LOG_INFO, 'Succeeded in claim! '. $result);