Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
abf27dde
Commit
abf27dde
authored
Feb 04, 2004
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed bug
#5628
: wrong timestamp in aggregator. Patch by BartJ.
parent
d3d88397
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
modules/aggregator.module
modules/aggregator.module
+1
-0
modules/aggregator/aggregator.module
modules/aggregator/aggregator.module
+1
-0
No files found.
modules/aggregator.module
View file @
abf27dde
...
...
@@ -424,6 +424,7 @@ function aggregator_parse_feed(&$data, $feed) {
else
if
(
$item
[
'DCTERMS:ISSUED'
])
$date
=
$item
[
'DCTERMS:ISSUED'
];
// Dublin core
else
if
(
$item
[
'DCTERMS:CREATED'
])
$date
=
$item
[
'DCTERMS:CREATED'
];
// Dublin core
else
if
(
$item
[
'DCTERMS:MODIFIED'
])
$date
=
$item
[
'DCTERMS:MODIFIED'
];
// Dublin core
else
$date
=
'now'
;
$timestamp
=
strtotime
(
$date
);
// strtotime() returns -1 on failure
...
...
modules/aggregator/aggregator.module
View file @
abf27dde
...
...
@@ -424,6 +424,7 @@ function aggregator_parse_feed(&$data, $feed) {
else
if
(
$item
[
'DCTERMS:ISSUED'
])
$date
=
$item
[
'DCTERMS:ISSUED'
];
// Dublin core
else
if
(
$item
[
'DCTERMS:CREATED'
])
$date
=
$item
[
'DCTERMS:CREATED'
];
// Dublin core
else
if
(
$item
[
'DCTERMS:MODIFIED'
])
$date
=
$item
[
'DCTERMS:MODIFIED'
];
// Dublin core
else
$date
=
'now'
;
$timestamp
=
strtotime
(
$date
);
// strtotime() returns -1 on failure
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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