From 77130e7ab25a509595040199e6e10be0a8924c2e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 16 Dec 2005 06:36:00 +0000 Subject: - Patch #36079 by James: fixed date handling in blogapi.module. --- modules/blogapi.module | 2 +- modules/blogapi/blogapi.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/blogapi.module b/modules/blogapi.module index 62f415675..fd2ddddef 100644 --- a/modules/blogapi.module +++ b/modules/blogapi.module @@ -676,7 +676,7 @@ function _blogapi_mt_extra(&$node, $struct) { // dateCreated if ($struct['dateCreated']) { - $node->date = $struct['dateCreated']->iso8601; + $node->date = format_date(mktime($struct['dateCreated']->hour, $struct['dateCreated']->minute, $struct['dateCreated']->second, $struct['dateCreated']->month, $struct['dateCreated']->day, $struct['dateCreated']->year), 'custom', 'Y-m-d H:i:s O'); } if ($was_array) { diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 62f415675..fd2ddddef 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -676,7 +676,7 @@ function _blogapi_mt_extra(&$node, $struct) { // dateCreated if ($struct['dateCreated']) { - $node->date = $struct['dateCreated']->iso8601; + $node->date = format_date(mktime($struct['dateCreated']->hour, $struct['dateCreated']->minute, $struct['dateCreated']->second, $struct['dateCreated']->month, $struct['dateCreated']->day, $struct['dateCreated']->year), 'custom', 'Y-m-d H:i:s O'); } if ($was_array) { -- cgit v1.2.3