projects
/
project/date.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ac7d8e6
)
Issue #1100934, Replace deprecated date_array() function.
author
Karen Stevenson
Wed, 23 Mar 2011 11:01:29 +0000 (06:01 -0500)
committer
Karen Stevenson
Wed, 23 Mar 2011 11:01:29 +0000 (06:01 -0500)
date_api/date_api_sql.inc
patch
|
blob
|
blame
|
history
diff --git
a/date_api/date_api_sql.inc
b/date_api/date_api_sql.inc
index
ed8f6b1
..
cc07870
100644
(file)
--- 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();