Issue #1100934, Replace deprecated date_array() function.
authorKaren Stevenson
Wed, 23 Mar 2011 11:01:29 +0000 (06:01 -0500)
committerKaren Stevenson
Wed, 23 Mar 2011 11:01:29 +0000 (06:01 -0500)
date_api/date_api_sql.inc

index ed8f6b1..cc07870 100644 (file)
@@ -729,7 +729,8 @@ class date_sql_handler {
     foreach ($fromto as $arg) {
       $parts = array();
       if ($arg == '@') {
-        $parts['date'] = date_array(date_now());
+        $date = date_now();
+        $parts['date'] = $date->toArray();
       }
       elseif (preg_match('/(\d{4})?-?(W)?(\d{1,2})?-?(\d{1,2})?[T\s]?(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?/', $arg, $matches)) {
         $date = array();