use common_sql_now() instead of DB_DataObject_Cast

darcs-hash:20080825182338-84dde-ec0edef9469b294b7e23945f1bc7d810da988ed7.gz
This commit is contained in:
Evan Prodromou
2008-08-25 14:23:38 -04:00
parent 55b6e17ee1
commit cba4b50e44
2 changed files with 6 additions and 2 deletions

View File

@@ -988,6 +988,10 @@ function common_date_iso8601($dt) {
return $d->format('c');
}
function common_sql_now() {
return strftime('%Y-%m-%d %H:%M:%S', time());
}
function common_redirect($url, $code=307) {
static $status = array(301 => "Moved Permanently",
302 => "Found",