summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--date_api/date_api_sql.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/date_api/date_api_sql.inc b/date_api/date_api_sql.inc
index ed8f6b1..cc07870 100644
--- a/date_api/date_api_sql.inc
+++ b/date_api/date_api_sql.inc
@@ -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();