Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
77130e7a
Commit
77130e7a
authored
Dec 16, 2005
by
Dries Buytaert
Browse files
- Patch
#36079
by James: fixed date handling in blogapi.module.
parent
bd4fe6ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
77130e7a
...
...
@@ -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
)
{
...
...
modules/blogapi/blogapi.module
View file @
77130e7a
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment